OFFSET
0,2
COMMENTS
The "seed" is 0 in this case.
This is a permutation of the nonnegative integers. - Nadia Heninger, Aug 10 2005
LINKS
R. J. Mathar, Feb 21 2008, Table of n, a(n) for n = 0..93
N. Heninger, E. M. Rains and N. J. A. Sloane, On the Integrality of n-th Roots of Generating Functions, J. Combinatorial Theory, Series A, 113 (2006), 1732-1745.
EXAMPLE
Sum of the digits of 29 is 11; the smallest available integer which has a copy of every digit of 11 is 101 (not 31).
MAPLE
A007953 := proc(n) add(i, i=convert(n, base, 10)) ; end: multDigs := proc(n) local a, dgs, i; if n = 0 then a := [1, seq(0, i=1..9)] ; else a := [seq(0, i=0..9)] ; dgs := convert(n, base, 10) ; for i in dgs do a := subsop(i+1=op(i+1, a)+1, a) ; od: fi ; RETURN(a) ; end: A107408 := proc(nmax) local a, ds, dsk, k, works, d ; a := [0] ; while nops(a) < nmax do ds := multDigs(A007953(op(-1, a))) ; for k from 1 do if not k in a then dsk := multDigs(k) ; works := true; for d from 1 to 10 do if op(d, dsk) < op(d, ds) then works := false ; break ; fi ; od: if works then a := [op(a), k] ; break ; fi ; fi ; od: od: RETURN(a) ; end: A107408(120) ; # R. J. Mathar, Feb 21 2008
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Jun 09 2005
EXTENSIONS
Corrected and extended by R. J. Mathar, Feb 21 2008
STATUS
approved