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

A117865
Number of palindromes (in base 6) below 6^n.
1
5, 10, 40, 70, 250, 430, 1510, 2590, 9070, 15550, 54430, 93310, 326590, 559870, 1959550, 3359230, 11757310, 20155390, 70543870, 120932350, 423263230, 725594110, 2539579390, 4353564670, 15237476350, 26121388030, 91424858110, 156728328190, 548549148670
OFFSET
1,1
FORMULA
a(n) = 7*6^((n-1)/2)-2 (n odd), 2*6^(n/2)-2 (n even).
G.f.: 5*x*(x+1) / ((x-1)*(6*x^2-1)). - Colin Barker, Feb 15 2013
MATHEMATICA
Table[If[OddQ[n], 7*6^((n - 1)/2) - 2, 2*6^(n/2) - 2], {n, 25}] (* or *) LinearRecurrence[{1, 6, -6}, {5, 10, 40}, 25] (* G. C. Greubel, Oct 27 2016 *)
CROSSREFS
Cf. A050250.
Sequence in context: A279764 A191580 A179306 * A249059 A163305 A001692
KEYWORD
nonn,base,easy
AUTHOR
Martin Renner, May 02 2006
EXTENSIONS
More terms from Colin Barker, Feb 15 2013
STATUS
approved