|
|
A037521
|
|
Base-4 digits are, in order, the first n terms of the periodic sequence with initial period 2, 1, 0.
|
|
2
|
|
|
2, 9, 36, 146, 585, 2340, 9362, 37449, 149796, 599186, 2396745, 9586980, 38347922, 153391689, 613566756, 2454267026, 9817068105, 39268272420, 157073089682, 628292358729, 2513169434916, 10052677739666, 40210710958665
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(2+x) / ( (1-x)*(1-4*x)*(1+x+x^2) ).
a(n) = 4*a(n-1) + a(n-3) - 4*a(n-4).
|
|
MAPLE
|
|
|
MATHEMATICA
|
Table[FromDigits[PadRight[{}, n, {2, 1, 0}], 4], {n, 30}] (* Harvey P. Dale, Jul 03 2017 *)
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|