OFFSET
1,1
COMMENTS
a(n) is the smallest number of the form m*prime(n) whose largest digit is 1. - Farideh Firoozbakht, Jun 03 2006
FORMULA
Find the number which when multiplied by the next prime, produces a product of all 1's and 0's or all 1's.
EXAMPLE
a(1)=111 because 3*37=111.
MATHEMATICA
a[n_]:=(For[m=1, Max[IntegerDigits[m*Prime[n]]]!=1, m++ ]; m*Prime[n]); Do[Print[a[n]], {n, 1, 29}] (* Farideh Firoozbakht, Jun 03 2006 *)
PROG
(UBASIC) 'See A119483
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Enoch Haga, May 23 2006
EXTENSIONS
More terms from Farideh Firoozbakht, Jun 03 2006
STATUS
approved