login
A261512
Largest n-digit lucky number.
0
9, 99, 997, 9999, 99987, 999987, 9999997, 99999979, 999999991, 9999999997, 99999999973, 999999999937, 9999999999999, 99999999999943, 999999999999993
OFFSET
1,1
PROG
(Perl) use ntheory ":all"; for (1..12) { $n=10**$_-1; $n-- while !is_lucky($n); say "$_ $n"; } # Dana Jacobsen, Mar 07 2023
CROSSREFS
Sequence in context: A101564 A242811 A070843 * A242809 A108908 A116260
KEYWORD
nonn,base,more
AUTHOR
Robert G. Wilson v, Aug 22 2015
EXTENSIONS
a(11)-a(15) from Hiroaki Yamanouchi, Aug 24 2015
STATUS
approved