Can any one help with this problem.

Revision en1, by deep_tricks, 2021-02-21 15:11:43

There is a 3*n grid which is to be filled with 3 different colors.How many ways can we do it if no column or row have all the cells of same color. N<=20000 and mod 1e9+7

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English deep_tricks 2021-02-21 15:11:43 207 Initial revision (published)