OFFSET
0,2
COMMENTS
A new faster Program is used in Mathematica.
MATHEMATICA
Clear[ f ]; f[ 0 ] := 1; f[ n_Integer /; n > 0 ] := Module[ {i, cnt, m, p}, i = 0; cnt = 0; m = Table[ 0, {10^n} ]; p = Map[ FromDigits, Partition[ First[ RealDigits[ GoldenRatio, 10, 20*10^n ] ], n, 1 ] ] + 1; Catch[ Map[ ( i++; If[ m[ [ # ] ] == 0, m[ [ # ] ] = 1; If[ ++cnt == 10^n, Throw[ i ] ] ]) &, p ] ] ]; Table[ f[ n ], {n, 0, 4} ]
CROSSREFS
KEYWORD
nonn,uned,base
AUTHOR
Roger L. Bagula, Nov 28 2008, Nov 30 2008
STATUS
approved