Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A146968
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A146968 Natural numbers n with property that n!+1=p^2 where, if p is a natural number, it's a prime. I tested it from 1 to 7530 and it wonderfully seems that n!+1=p^2 produces only primes... However, until 7530, the only 3 numbers that makes p a natural number are 4, 5 and 7 (and they produce 3 primes). I submit it hoping that somebody can find other numbers or finally convince me it's only a soap bubble (or something known). +0
2
4, 5, 7 (list; graph; listen)
OFFSET

1,1

COMMENT

No other terms up to 8047. The MAGMA program below generates the pairs <n, p>: <4, 5>, <5, 11>, <7, 71>. [From Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Nov 05 2008]

Used the PARI script below to check new terms up to 60100. No new terms were found. [From Marco Bellaccini (marcomurk(AT)tele2.it), Nov 08 2008]

EXAMPLE

7! + 1 = 5041 = 71^2, hence 7 is in the sequence. [From Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Nov 05 2008]

PROGRAM

(Shell) #!/bin/sh n=0 while(true) do n=`echo $n + 1 | bc` calc "($n! + 1)" ^ "(1 / 2)" | grep -v \. done

(MAGMA) [ <n, p>: n in [1..8047] | t where t, p:=IsSquare(Factorial(n)+1) ]; [From Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Nov 05 2008]

(PARI) { for (n=1, 60100, if(issquare(n!+1) == 1, print(n) ) ) } [From Marco Bellaccini (marcomurk(AT)tele2.it), Nov 08 2008]

CROSSREFS

Sequence in context: A019067 A095212 A166042 this_sequence A112247 A057055 A114343

Adjacent sequences: A146965 A146966 A146967 this_sequence A146969 A146970 A146971

KEYWORD

bref,more,nonn

AUTHOR

Marco Bellaccini (marcomurk(AT)tele2.it), Nov 03 2008

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 30 13:13 EST 2009. Contains 167758 sequences.


AT&T Labs Research