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!)
A166851 Numbers n such that reversal(n!+n) is prime. 0
1, 5, 37, 857, 2566 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
It's obvious that 1 is the only number n such that n!+n is prime.
There is no further term up to 5000.
LINKS
EXAMPLE
37!+37=13763753091226345046315979581580902400000037 and reversal(37!+37)=
73000000420908518597951364054362219035736731 is prime so 37 is in the sequence.
MATHEMATICA
reversal[n_]:=FromDigits[Reverse[IntegerDigits[n]]];
Do[If[PrimeQ[reversal[n!+n]], Print[n]], {n, 5000}]
CROSSREFS
Sequence in context: A257952 A240186 A003213 * A090439 A089795 A081971
KEYWORD
base,hard,more,nonn
AUTHOR
Farideh Firoozbakht, Oct 22 2009
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 19 07:38 EDT 2024. Contains 371782 sequences. (Running on oeis4.)