login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A226576
Smallest number of integer-sided squares needed to tile a 3 X n rectangle.
4
0, 3, 3, 1, 4, 4, 2, 5, 5, 3, 6, 6, 4, 7, 7, 5, 8, 8, 6, 9, 9, 7, 10, 10, 8, 11, 11, 9, 12, 12, 10, 13, 13, 11, 14, 14, 12, 15, 15, 13, 16, 16, 14, 17, 17, 15, 18, 18, 16, 19, 19, 17, 20, 20, 18, 21, 21, 19, 22, 22, 20, 23, 23, 21, 24, 24, 22, 25, 25, 23, 26
OFFSET
0,2
FORMULA
G.f.: (3*x-2*x^3)/(1-x-x^3+x^4).
a(n) = 1 + a(n-3) for n>2; a(0)=0, a(1)=a(2)=3.
a(n) = (3*n+15+6*cos(2*(n-2)*Pi/3)-8*sqrt(3)*sin(2*(n-2)*Pi/3))/9. - Wesley Ivan Hurt, Oct 01 2017
a(n) = 3*floor((n+2)/3) - 2*floor(n/3). - Ridouane Oudra, Jan 25 2024
EXAMPLE
a(8) = 5:
._._._._._._._._.
| | | |
| | |___|
|_____|_____|_|_| .
MAPLE
a:= n-> iquo(n, 3, 'r') +[0, 3, 3][r+1]:
seq(a(n), n=0..80);
MATHEMATICA
CoefficientList[Series[(3 x - 2 x^3)/(1 - x - x^3 + x^4), {x, 0, 70}], x] (* Michael De Vlieger, Oct 01 2017 *)
PROG
(PARI) concat(0, Vec((3*x-2*x^3)/(1-x-x^3+x^4) + O(x^50))) \\ Felix Fröhlich, Oct 02 2017
CROSSREFS
Cf. row m=3 of A113881, A219158.
Sequence in context: A255058 A258201 A164731 * A297902 A298496 A137919
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, Jun 12 2013
STATUS
approved