login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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.
LINKS
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
Sequence in context: A254122 A095096 A179242 * A345447 A174258 A080746
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Mar 07 2005
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 15:20 EDT 2024. Contains 371916 sequences. (Running on oeis4.)