login
A078290
Least nontrivial multiple of the n-th prime beginning with 6.
8
6, 6, 60, 63, 66, 65, 68, 608, 69, 609, 62, 629, 615, 602, 611, 636, 649, 610, 603, 639, 657, 632, 664, 623, 679, 606, 618, 642, 654, 678, 635, 655, 685, 695, 6109, 604, 628, 652, 668, 692, 6086, 6154, 6112, 6176, 6107, 6169, 633, 669, 681, 687, 699, 6214
OFFSET
1,1
MATHEMATICA
f[n_] := Block[{k = 2, m = n}, While[ IntegerDigits[k*m][[1]] != 6, k++ ]; k*m]; Table[ f[ Prime[n]], {n, 1, 55}]
PROG
(Python)
from sympy import prime
def a(n):
pn = prime(n)
m = 2*pn
while str(m)[0] != '6': m += pn
return m
print([a(n) for n in range(1, 53)]) # Michael S. Branicky, Jun 06 2021
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Nov 26 2002
EXTENSIONS
Edited, corrected and extended by Robert G. Wilson v, Nov 29 2002
STATUS
approved