OFFSET
1,1
COMMENTS
a(n) is the smallest number m such that the largest digit of m*prime(n) is 1. - Farideh Firoozbakht, Jun 03 2006
EXAMPLE
a(1)=37 because 3*37=111.
MATHEMATICA
a[n_]:=(For[m=1, Max[IntegerDigits[m*Prime[n]]]!=1, m++ ]; m); Do[Print[a[n]], {n, 1, 40}] - Farideh Firoozbakht, Jun 03 2006
PROG
(UBASIC)
10 'inspired by Carlos Rivera's Puz361
20 N=19:Y=Y+1:K=0
30 Z=N*Y
40 S=str(Z)
50 A=alen(Z)
60 for X=2 to A+1
70 M=val(mid(S, X, 1))
80 if M>1 then K=K+1
90 next X
100 if K=0 then print Z, N, Y, K:stop
110 Y=Y+1:K=0:goto 30
120 'neils361, Enoch Haga, May 20 2006
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Enoch Haga, May 23 2006
EXTENSIONS
Edited by Charles R Greathouse IV, Aug 05 2010
STATUS
approved