A037482 Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 1,2.
1, 7, 36, 182, 911, 4557, 22786, 113932, 569661, 2848307, 14241536, 71207682, 356038411, 1780192057, 8900960286, 44504801432, 222524007161, 1112620035807, 5563100179036, 27815500895182, 139077504475911, 695387522379557
Offset: 1
Links
Programs
-
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
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