[go: up one dir, main page]

login
A033133
Base-6 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,0.
1
1, 7, 42, 253, 1519, 9114, 54685, 328111, 1968666, 11811997, 70871983, 425231898, 2551391389, 15308348335, 91850090010, 551100540061, 3306603240367, 19839619442202, 119037716653213, 714226299919279, 4285357799515674, 25712146797094045, 154272880782564271
OFFSET
1,2
FORMULA
a(n) = 6*a(n-1) + a(n-3) - 6*a(n-4).
G.f.: x*(1+x) / ((1-x)*(1-6*x)*(1+x+x^2)). - Colin Barker, Dec 24 2015
PROG
(PARI) Vec(x*(1+x)/((1-x)*(1-6*x)*(1+x+x^2)) + O(x^30)) \\ Colin Barker, Dec 24 2015
CROSSREFS
Sequence in context: A170688 A003949 A252700 * A082035 A127016 A152239
KEYWORD
nonn,base,easy
STATUS
approved