Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A117896
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A117896 Number of perfect powers between consecutive squares n^2 and (n+1)^2. +0
2
0, 1, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 (list; graph; listen)
OFFSET

1,5

COMMENT

a(n)=2 only 14 times for n<2^63. What is the least n such that a(n)=3? Is a(n) bounded?

EXAMPLE

a(5)=2 because powers 27 and 32 are between 25 and 36.

MATHEMATICA

nMax=150^2; lst={}; log2Max=Ceiling[Log[2, nMax]]; bases=Table[2, {log2Max}]; powers=bases^Range[log2Max]; powers[[1]]=Infinity; cnt=0; While[nextPP=Min[powers]; nextPP <= nMax, pos=Flatten[Position[powers, nextPP]]; If[MemberQ[pos, 2], AppendTo[lst, cnt]; cnt=0, cnt++ ]; Do[k=pos[[i]]; bases[[k]]++; powers[[k]]=bases[[k]]^k, {i, Length[pos]}]]; lst

CROSSREFS

Cf. A001597 (perfect powers), A014085 (primes between squares).

Sequence in context: A045837 A126825 A045833 this_sequence A132976 A143840 A028649

Adjacent sequences: A117893 A117894 A117895 this_sequence A117897 A117898 A117899

KEYWORD

nonn

AUTHOR

T. D. Noe (noe(AT)sspectra.com), Mar 31 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