Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A166851
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A166851 Numbers n such that reversal(n!+n) is prime. +0
1
1, 5, 37, 857, 2566 (list; graph; listen)
OFFSET

1,2

COMMENT

It's obvious that 1 is the only number n such that n!+n is prime.

There is no further term up to 5000.

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: A121834 A083846 A003213 this_sequence A090439 A089795 A081971

Adjacent sequences: A166848 A166849 A166850 this_sequence A166852 A166853 A166854

KEYWORD

base,hard,more,nonn

AUTHOR

F. Firoozbakht (mymontain(AT)yahoo.com), Oct 22 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research