Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A115041
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A115041 y in the smallest x such that x^2 + p = y^n over the set of primes p. +0
1
3, 2, 3, 2, 3, 7, 3, 10, 3, 15, 2, 19, 21, 22, 2, 3, 30, 5, 34, 2, 37, 2, 42, 5, 7, 51, 2, 54, 5, 57, 2, 66, 69, 70, 75, 2, 79, 82, 6, 87, 3, 91, 6, 97, 99, 7, 106, 2, 3, 115, 117, 3, 11, 3, 129, 132, 135, 10, 139, 141, 142, 147, 7, 156, 157, 159, 166, 13, 174, 175, 177, 12, 2 (list; graph; listen)
OFFSET

1,1

COMMENT

Conjecture: There will always be an x,y,n such that x^2 + p = y^n for all primes p.

EXAMPLE

5 is the smallest number that when we add its square to prime 2, we get a

perfect power, 3^3. So 3 is the first entry. 498^2 + 997 = 499^2. so 499 is

the last entry in the table.

PROGRAM

(PARI) sqplusp(n) = { local(p, x, y, c=0); forprime(p=2, n, for(x=1, n, y=x^2+p; if(ispower(y), print1(power(y)", "); c++; break ) ) ); print(); print(c) } exponent(n) = \ Return the exponent if n is a perfect power { local(x, ln, j, e=0); ln=omega(n); x=factor(n); e=x[1, 2]; for(j=2, ln, if(x[j, 2] < e, e=x[j, 2]) ); return(e) } power(n) = \Return the largest factor for which n is a perfect power { if(ispower(n), return(round(n^(1/exponent(n)))) ) }

CROSSREFS

Sequence in context: A097618 A039639 A023509 this_sequence A039641 A093489 A066919

Adjacent sequences: A115038 A115039 A115040 this_sequence A115042 A115043 A115044

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Feb 26 2006

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 18 20:14 EST 2008. Contains 147244 sequences.


AT&T Labs Research