|
|
A037639
|
|
Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 2,3,1.
|
|
1
|
|
|
2, 11, 45, 182, 731, 2925, 11702, 46811, 187245, 748982, 2995931, 11983725, 47934902, 191739611, 766958445, 3067833782, 12271335131, 49085340525, 196341362102, 785365448411, 3141461793645, 12565847174582, 50263388698331
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(x+2)*(1+x) / ( (x-1)*(4*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
|
|
MATHEMATICA
|
LinearRecurrence[{4, 0, 1, -4}, {2, 11, 45, 182}, 40] (* Vincenzo Librandi, Jun 17 2012 *)
|
|
PROG
|
(Magma) I:=[2, 11, 45, 182]; [n le 4 select I[n] else 4*Self(n-1)+Self(n-3)-4*Self(n-4): n in [1..30]]; // Vincenzo Librandi, Jun 17 2012
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|