OFFSET
1,2
COMMENTS
Conjecture: a(n) ≍ n^2. - Charles R Greathouse IV, Nov 29 2024
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
n^2 << a(n) << 1.001^n. - Charles R Greathouse IV, Nov 29 2024
MATHEMATICA
decreasingQ[L_]:=Max[Rest[(L-RotateRight[L])]]<0;
sortedQ[n_]:=decreasingQ[Sort[Tally[IntegerDigits[n]]][[All, 2]]];
Select[Range[10000]^2, sortedQ]
PROG
(PARI) has(n)=my(d=matreduce(digits(n))[, 2]); for(i=2, #d, if(d[i]>=d[i-1], return(0))); 1
list(lim)=my(v=List()); for(n=1, sqrtint(lim\1), if(has(n^2), listput(v, n^2))); Vec(v) \\ Charles R Greathouse IV, Nov 29 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Erich Friedman, Nov 28 2024
STATUS
approved