|
|
A037758
|
|
Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 3,0,1,2.
|
|
0
|
|
|
3, 12, 49, 198, 795, 3180, 12721, 50886, 203547, 814188, 3256753, 13027014, 52108059, 208432236, 833728945, 3334915782, 13339663131, 53358652524, 213434610097, 853738440390, 3414953761563, 13659815046252, 54639260185009
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(3+x^2+2*x^3) / ( (x-1)*(4*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, May 04 2015
|
|
MATHEMATICA
|
Table[FromDigits[PadRight[{}, n, {3, 0, 1, 2}], 4], {n, 30}] (* or *) LinearRecurrence[{4, 0, 0, 1, -4}, {3, 12, 49, 198, 795}, 30] (* Harvey P. Dale, May 05 2022 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|