OFFSET
0,2
COMMENTS
Also: Numbers n such that n is reversal(n)-th odd number. (This was the original definition. - Ed.)
All semiprimes in this sequence (n = 2, 4, 7, 9, 11, 16, 18, 23, 31, 32, 40, ...) are in A136543. - M. F. Hasler, Nov 03 2012
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (11,-10).
FORMULA
From Colin Barker, Oct 14 2014: (Start)
a(n) = 10*a(n-1) + a(n-2) - 10*a(n-3).
G.f.: (1+62*x)/((1-x)*(1-10*x)). (End)
E.g.f.: 8*exp(10*x) - 7*exp(x). - G. C. Greubel, Apr 14 2023
EXAMPLE
793 is in the sequence because 793 is 397th odd number.
1 is in the sequence because 1 is the 1st odd number. - M. F. Hasler, Nov 03 2012
MATHEMATICA
Table[8*10^n-7, {n, 0, 20}]
PROG
(Maxima) A100412(n):=8*10^n-7$
makelist(A100412(n), n, 0, 17); /* Martin Ettl, Nov 08 2012 */
(PARI) Vec((1+62*x)/((1-x)*(1-10*x)) + O(x^100)) \\ Colin Barker, Oct 14 2014
(Magma) [8*10^n -7: n in [0..20]]; // G. C. Greubel, Apr 14 2023
(SageMath) [8*10^n -7 for n in range(21)] # G. C. Greubel, Apr 14 2023
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Farideh Firoozbakht, Dec 08 2004
EXTENSIONS
Edited and extended to offset 0 by M. F. Hasler, Nov 03 2012
STATUS
approved