wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> medium >> Counting Squares
(Message started by: Michael Dagg on Apr 25th, 2009, 8:59am)

Title: Counting Squares
Post by Michael Dagg on Apr 25th, 2009, 8:59am
For  n>=1 ,   how many squares are in the sequence

18, 69, 154, ... , 17n^2 + 1  ?

Title: Re: Counting Squares
Post by towr on Apr 25th, 2009, 2:14pm
Aren't there infinitely many if there is at least one?
[hide]It's a Pell equation
one solution to k2 - 17n2 = 1 is k1=33, n1=8

more solutions i=2..inf:
ki =  ki-1 k1 + 17 ni-1 n1
ni =  ki-1 n1 + ni-1 k1
[/hide]

[edit]Oh wait, you probably mean up to a given n.
[hide]There should be solutions regularly spaced among the convergents of the continued fraction of sqrt(17)[/hide][/edit]



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board