login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A308004
a(n) = smallest nonnegative number that requires n applications of the Sisyphus function x -> A073053(x) to reach 123.
2
123, 101, 0, 20, 11, 1
OFFSET
0,1
COMMENTS
a(n) = index of first n in A073054.
a(6) is currently unknown.
REFERENCES
M. E. Coppenbarger, Iterations of a modified Sisyphus function, Fib. Q., 56 (No. 2, 2018), 130-141.
EXAMPLE
0 -> 101 -> 123 reaches 123 in two steps, so a(2) = 0.
1 -> 11 -> 22 -> 202 -> 303 -> 123 reaches 123 in 5 steps, so a(5) = 1.
MATHEMATICA
id[n_]:=IntegerDigits[n]; il[n_]:=If[n!=0, IntegerLength[n], 1]
den[n_]:=FromDigits[{Length[Select[id[n], EvenQ]], Length[Select[id[n], OddQ]], il[n]}]; numD[n_]:=Length[FixedPointList[den, n]]-2;
a308004[n_]:=Module[{k=0}, While[numD[k]!=n, k++]; k];
a308004/@Range[0, 5] (* Ivan N. Ianakiev, May 13 2019 *)
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
N. J. A. Sloane, May 12 2019
STATUS
approved