[go: up one dir, main page]

login
A037482
Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 1,2.
0
1, 7, 36, 182, 911, 4557, 22786, 113932, 569661, 2848307, 14241536, 71207682, 356038411, 1780192057, 8900960286, 44504801432, 222524007161, 1112620035807, 5563100179036, 27815500895182, 139077504475911, 695387522379557
OFFSET
1,2
FORMULA
a(n) = 5a(n-1) + a(n-2) - 5a(n-3).
a(n) = (-1)^n/12 -3/8 +7*5^n/24. G.f. x*(1+2*x) / ( (x-1)*(5*x-1)*(1+x) ). - R. J. Mathar, Nov 02 2011
A007091(a(n)) = A037487(n). - R. J. Mathar, Apr 27 2015
PROG
(PARI) a(n)=([0, 1, 0; 0, 0, 1; -5, 1, 5]^(n-1)*[1; 7; 36])[1, 1] \\ Charles R Greathouse IV, Feb 13 2017
CROSSREFS
Sequence in context: A054493 A368575 A037538 * A147546 A333060 A331719
KEYWORD
nonn,base,easy
STATUS
approved