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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A308348 Sum of n written in each integer base from 1 to n inclusive, read as decimal numbers. 0
1, 21, 132, 1232, 11245, 111274, 1111289, 11112199, 111112293, 1111112324, 11111112343, 111111112468, 1111111112489, 11111111112522, 111111111112557, 1111111111121537, 11111111111121562, 111111111111121678, 1111111111111121705, 11111111111111121832 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The sequence cannot continue after 20 with the given rules, because 21 in base 11 is 1A, which cannot be read as in decimal.
LINKS
EXAMPLE
For n=3, the bases are 111 (base 1), 11 (base 2), and 10 (base 3), which sum to 132.
PROG
(PARI) digs(n, b) = if (b==1, vector(n, k, 1), digits(n, b));
a(n) = sum(b=1, n, fromdigits(digs(n, b), 10)); \\ Michel Marcus, Jun 05 2019
CROSSREFS
Sequence in context: A157624 A008384 A110400 * A089369 A328861 A243201
KEYWORD
nonn,base
AUTHOR
David Robillard, Jun 05 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | 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 April 18 13:50 EDT 2024. Contains 371780 sequences. (Running on oeis4.)