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”).

A037796
Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 3,2,1,0.
1
3, 23, 162, 1134, 7941, 55589, 389124, 2723868, 19067079, 133469555, 934286886, 6540008202, 45780057417, 320460401921, 2243222813448, 15702559694136, 109917917858955, 769425425012687, 5385977975088810
OFFSET
1,1
FORMULA
a(n) = 7*a(n-1) + a(n-4) - 7*a(n-5).
G.f.: x*(3+2*x+x^2) / ( (x-1)*(7*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Apr 30 2015
CROSSREFS
Sequence in context: A164536 A037789 A037670 * A331723 A212395 A027141
KEYWORD
nonn,base,easy
STATUS
approved