OFFSET
1,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..500
MAPLE
filter:= proc(n) local L, S;
L:= convert(n, base, 10);
S:= Statistics:-Tally(L, output=list);
S:= sort(S, (a, b) -> lhs(a) < lhs(b));
andmap(t -> rhs(S[t])<rhs(S[t+1]), [$1..nops(S)-1])
end proc:
select(filter, [seq(i^2, i=0..10^5)]); # Robert Israel, Nov 29 2024
MATHEMATICA
increasingQ[L_]:=Min[Rest[(L-RotateRight[L])]]>0;
sortedQ[n_]:=increasingQ[Sort[Tally[IntegerDigits[n]]][[All, 2]]]
Select[Range[575000000]^2, sortedQ]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Erich Friedman, Nov 28 2024
STATUS
approved