login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A371031 Number of distinct integers resulting from adding an n-digit non-multiple of 10 and its reverse. 1
9, 17, 170, 323, 3230, 6137, 61370, 116603, 1166030, 2215457
(list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
For n > 1, empirically a(n+1) = 10 a(n) if n even, 19 a(n) / 10 if n odd, and thus a(n+2) = 19 a(n). - Michael S. Branicky, Mar 31 2024
EXAMPLE
For n=2 there are 81 2-digit numbers not ending with 0: {11, 12, 13, ..., 99}. There are 17 distinct results when adding each of these to their reversal: {22, 33, 44, 55, 66, 77, 88, 99, 110, 121, 132, 143, 154, 165, 176, 187, 198}. Therefore a(2) = 17.
MATHEMATICA
A371031[n_] :=
Module[{nn, ss},
nn = Select[Range[If[n == 1, 1, 10^(n - 1) + 1], 10^n - 1], Mod[#, 10] > 0 &];
ss = Map[# + FromDigits[Reverse[IntegerDigits[#]]] &, nn];
Return[CountDistinct[ss]]
];
Map[A371031[#]&, Range[7]]
CROSSREFS
Sequence in context: A110462 A132375 A110360 * A123836 A141444 A061748
KEYWORD
nonn,base,more
AUTHOR
César Eliud Lozada, Mar 08 2024
EXTENSIONS
a(9)-a(10) from Michael S. Branicky, Mar 30 2024
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 18 10:38 EDT 2024. Contains 375999 sequences. (Running on oeis4.)