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”).

A104425
Numbers n such that n, p[n], p[n]+n, p[n]-n and p[n]*n all are 5-less.
2
1, 4, 6, 7, 9, 10, 11, 18, 19, 23, 27, 29, 30, 32, 40, 41, 42, 43, 44, 49, 60, 61, 63, 67, 69, 70, 73, 74, 79, 80, 110, 111, 131, 140, 143, 144, 166, 170, 171, 179, 180, 181, 183, 184, 187, 189, 193, 196, 199, 200, 201, 202, 206, 209, 223, 228, 229, 233, 261, 263, 270
OFFSET
1,2
COMMENTS
From the first 3000 primes, only 369 are such that n, p[n], p[n]+n, p[n]-n and p[n]*n all are 5-less.
MATHEMATICA
id[x_]:=IntegerDigits[x]; pr[i_]:=Prime[i]; ra=Range[3000]; A104425=Select[ra, Position[Union[id[ # ], id[pr[ # ]], id[pr[ # ]+# ], id[pr[ # ]-# ], id[pr[ # ]*# ]], 5]=={}&]
flQ[n_]:=Module[{pr=Prime[n]}, Union[DigitCount[{n, pr, pr+n, pr-n, pr*n}, 10, 5]] == {0}]; Select[Range[300], flQ] (* Harvey P. Dale, May 29 2014 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Mar 07 2005
STATUS
approved