The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A309737 Base conversion sequence: a(1) = 1; a(n) is the concatenation of all the previous terms, evaluated in base n-1, written in base n. 2
1, 1, 10, 213, 133130, 50044104412, 1456053604226211530303, 1355606752437672176235012441560305430335663, 211028537470000781652623227715306164580285678106041347266088244412145807188883237767 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
This will only work for n <= 10. To get a sequence that is defined for all n, it will be necessary to replace a(n) by a list of its "digits". So the result will be a triangle: 1 / 1 / 1,0 / 2,1,3 / ..., in which row n is a list of the digits written in base n. This should be an additional sequence with a cross-reference to this one. - N. J. A. Sloane, Sep 21 2019
See A349918 for the corresponding triangle. - Rémy Sigrist, Dec 05 2021
LINKS
FORMULA
a(1) = 1; a(n) is the concatenation of all the previous terms, evaluated in base n-1, written in base n.
EXAMPLE
For a(3) the previous terms are {1,1}. Evaluating the concatenation of those terms in base n-1 = 2 gives 11_2 = 3; converting that to base n = 3 gives 10_3, so a(3) = 10.
n=4: 1110_3 = 39_10 = 213_4, so a(4) = 213.
PROG
(PARI) See Links section.
(Python)
from sympy.ntheory.digits import digits
def fromdigits(d, b):
n = 0
for di in d: n *= b; n += di
return n
def afull():
alst, diglst = [1], [1]
for n in range(2, 11):
andigs = digits(fromdigits(diglst, n-1), n)[1:]
alst.append(int("".join(map(str, andigs))))
diglst.extend(andigs)
return alst
print(afull()) # Michael S. Branicky, Dec 05 2021
CROSSREFS
Cf. A349918.
Sequence in context: A332408 A245981 A245985 * A211912 A213788 A278125
KEYWORD
nonn,base,full,fini
AUTHOR
Moshe Levy, Aug 14 2019
EXTENSIONS
More terms from Rémy Sigrist, Dec 05 2021
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 May 13 01:02 EDT 2024. Contains 372497 sequences. (Running on oeis4.)