login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A050250 Number of nonzero palindromes less than 10^n. 14

%I

%S 9,18,108,198,1098,1998,10998,19998,109998,199998,1099998,1999998,

%T 10999998,19999998,109999998,199999998,1099999998,1999999998,

%U 10999999998,19999999998,109999999998,199999999998,1099999999998,1999999999998,10999999999998

%N Number of nonzero palindromes less than 10^n.

%H G. C. Greubel, <a href="/A050250/b050250.txt">Table of n, a(n) for n = 1..1000</a>

%H Dr. Math, <a href="http://mathforum.org/dr.math/problems/stang4.8.14.97.html">More info 1</a>

%H Dr. Math, <a href="http://mathforum.org/dr.math/problems/akyildiz1.4.98.html">More info 2</a>

%H G. J. Simmons, <a href="/A002778/a002778_2.pdf">Palindromic powers</a>, J. Rec. Math., 3 (No. 2, 1970), 93-98. [Annotated scanned copy]

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/PalindromicNumber.html">Palindromic Number.</a>

%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (1,10,-10).

%F a(2*k) = 2*10^k - 2, a(2*k + 1) = 11*10^k - 2. - _Sascha Kurz_, Apr 14 2002

%F From _Jonathan Vos Post_, Jun 18 2008: (Start)

%F a(n) = Sum_{i=1..n} A050683(i).

%F a(n) = Sum_{i=1..n} 9*10^floor((i-1)/2).

%F a(n) = 9*Sum_{i=1..n} 10^floor((i-1)/2). (End)

%F From _Bruno Berselli_, Feb 15 2011: (Start)

%F G.f.: 9*x*(1+x)/((1-x)*(1-10*x^2)).

%F a(n) = (1/2)*10^((2*n + (-1)^n - 1)/4)*(13 - 9*(-1)^n) - 2. (End)

%F a(1)=9, a(2)=18, a(3)=108; for n>3, a(n) = a(n-1) + 10*a(n-2) - 10*a(n-3). - _Harvey P. Dale_, Jan 29 2012

%F a(n) = 10*a(n-2) + 18. - _R. J. Mathar_, Nov 07 2015

%t LinearRecurrence[{1,10,-10},{9,18,108},30] (* _Harvey P. Dale_, Jan 29 2012 *)

%o (PARI) a(n)=10^(n\2)*(13-9*(-1)^n)/2-2 \\ _Charles R Greathouse IV_, Jun 25 2017

%Y Cf. A002113, A050683.

%K nonn,easy,base,nice

%O 1,1

%A _Eric W. Weisstein_, Dec 11 1999

%E More terms from _Patrick De Geest_, Dec 15 1999

%E a(24)-a(25) from _Jonathan Vos Post_, Jun 18 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 15 04:34 EDT 2020. Contains 335763 sequences. (Running on oeis4.)