Pell numbers: Difference between revisions

Content added Content deleted
(New draft task and Raku example)
 
m (clarify)
Line 63: Line 63:




'''Pell numbers''' may also be used to find '''near isosceles right triangles'''; right triangles whose legs differ by exactly '''1'''. E.G.: '''(3,4,5), (20,21,29), (119,120,169), etc.'''
'''Pell numbers''' may also be used to find Pythagorean triple '''near isosceles right triangles'''; right triangles whose legs differ by exactly '''1'''. E.G.: '''(3,4,5), (20,21,29), (119,120,169), etc.'''


For '''n > 0''', each right triangle hypotenuse is '''P<sub>2n + 1</sub>'''. The shorter leg length is the sum of the term ''up to'' '''P<sub>2n + 1</sub>'''. The longer leg length is '''1''' more than that.
For '''n > 0''', each right triangle hypotenuse is '''P<sub>2n + 1</sub>'''. The shorter leg length is the sum of the terms ''up to'' '''P<sub>2n + 1</sub>'''. The longer leg length is '''1''' more than that.




Line 76: Line 76:
;* Find and show at least the first 10 indices of '''Pell primes'''.
;* Find and show at least the first 10 indices of '''Pell primes'''.
;* Find and show at least the first 10 '''Newman-Shank-Williams numbers'''
;* Find and show at least the first 10 '''Newman-Shank-Williams numbers'''
;* Find and show at least the first 10 '''near isosceles right triangles'''.
;* Find and show at least the first 10 Pythagorean triples corresponding to '''near isosceles right triangles'''.