Problem 54345. Fill a rectangle with 1x1 and 2x2 tiles
A 3x2 rectangle can be filled with 1x1 and 2x2 tiles in three ways:
The colors merely distinguish the sizes of the tiles. A 3x3 rectangle can be filled with 1x1 and 2x2 tiles in five ways:
Write a function to count the ways that a 3xn rectangle can be filled.
Solution Stats
Problem Comments
-
1 Comment
Rafael S.T. Vieira
on 27 Nov 2022
It seems easy, then hard, then easy again.
Solution Comments
Show commentsProblem Recent Solvers18
Suggested Problems
-
2469 Solvers
-
Determine if a Given Number is a Triangle Number
386 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
547 Solvers
-
Convert a Cell Array into an Array
2052 Solvers
-
Convert from Fahrenheit to Celsius
26664 Solvers
More from this Author312
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!