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!)
A355062 Perfect powers whose digits are in nondecreasing order. 2
4, 8, 9, 16, 25, 27, 36, 49, 125, 128, 144, 169, 225, 256, 289, 1156, 1225, 1369, 1444, 4489, 6889, 11236, 11449, 13456, 13689, 27889, 33489, 111556, 112225, 113569, 134689, 146689, 344569, 444889, 2666689, 2778889, 11115556, 11122225, 11135569, 11336689 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
I.e., numbers of the form b^k with b > 1 and k > 1 in whose base-10 expansion no digit is less than the previous digit.
Includes infinite subsequences such as {16, 1156, 111556, 11115556, ...} and {25, 1225, 112225, 11122225, ...}, so the sequence is infinite.
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..261
PROG
(Python)
from sympy import perfect_power as pp
from itertools import count, islice, combinations_with_replacement as mc
def agen():
for d in count(1):
ni = (int("".join(m)) for m in mc("123456789", d))
yield from filter(pp, ni)
print(list(islice(agen(), 40))) # Michael S. Branicky, Jun 16 2022
(PARI) isok(m) = if (ispower(m), my(d=digits(m)); (d == vecsort(d))); \\ Michel Marcus, Jun 18 2022
CROSSREFS
Sequence in context: A195942 A125643 A002760 * A355060 A115651 A062559
KEYWORD
nonn,base
AUTHOR
Jon E. Schoenfield, Jun 16 2022
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 23 20:33 EDT 2024. Contains 371916 sequences. (Running on oeis4.)