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!)
A212223 a(n) is the least integer greater than 1 whose expansion in prime bases 2 to prime(n) have equal sum of digits. 2
2, 6, 6, 882, 1386, 2007986541, 70911040973874056146188543 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Case a(1) is trivial since only base prime(1)=2 is involved.
Conjecture: the sequence never terminates.
a(7) > 2.3*10^16, if it exists. - Giovanni Resta, Oct 29 2018
LINKS
EXAMPLE
a(5) = 1386 because that number has the same sum of digits in the first 5 prime bases 2, 3, 5, 7, 11 (see A212222 and A000040).
MATHEMATICA
f[n_] := Block[{p = Prime@ Range@ n, k = 2}, While[ Length[ Union[ Total@# & /@ IntegerDigits[k, p]]] != 1, k++]; k] (* Robert G. Wilson v, Oct 24 2014 *)
PROG
(PARI) isok(n, k) = my(s=hammingweight(k)); forprime (b=3, prime(n), if (sumdigits(k, b) != s, return (0))); return (1);
a(n) = my(k=2); while (!isok(n, k), k++); k; \\ Michel Marcus, Jun 08 2021
CROSSREFS
Sequence in context: A369119 A279841 A219195 * A158915 A257478 A243523
KEYWORD
nonn,base,hard,more
AUTHOR
Stanislav Sykora, May 10 2012
EXTENSIONS
Name edited by Michel Marcus, Sep 14 2020
a(7) from Thomas König, Jun 08 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 16 00:16 EDT 2024. Contains 372549 sequences. (Running on oeis4.)