login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A104427
Numbers n such that n, p[n], p[n]+n, p[n]-n and p[n]*n all are 7-less.
2
1, 2, 3, 5, 10, 11, 13, 23, 24, 29, 30, 32, 35, 38, 43, 46, 51, 60, 62, 81, 82, 98, 100, 140, 146, 180, 185, 188, 189, 190, 191, 200, 202, 205, 209, 215, 221, 226, 231, 246, 252, 254, 255, 261, 266, 281, 282, 291, 293, 301, 320, 321, 323, 346, 369, 381, 382, 391
OFFSET
1,2
COMMENTS
From the first 3000 primes, only 200 are such that n, p[n], p[n]+n, p[n]-n and p[n]*n all are 7-less.
MATHEMATICA
id[x_]:=IntegerDigits[x]; pr[i_]:=Prime[i]; ra=Range[3000]; A104427=Select[ra, Position[Union[id[ # ], id[pr[ # ]], id[pr[ # ]+# ], id[pr[ # ]-# ], id[pr[ # ]*# ]], 7]=={}&]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Mar 07 2005
STATUS
approved