Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A138494
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A138494 a and b are integers > 0, aa + bb = cc. The number of integer solutions for a,b between successive c integers. Integer solutions for c (Pythagorean triples) are not included. +0
1
1, 3, 4, 5, 7, 8, 11, 13, 13, 14, 15, 19, 20, 21, 21, 23, 26, 29, 29, 28, 35, 33, 34, 37, 37, 41, 40, 41, 45, 44, 51, 49, 51, 54, 49, 57, 54, 63, 59, 56, 65, 65, 71, 68, 65, 73, 72, 77, 75, 79, 78, 75, 83, 80, 91, 85, 89, 88, 91, 95, 94, 97, 99, 96, 99, 99, 105, 110, 103, 109 (list; graph; listen)
OFFSET

1,2

PROGRAM

(Qbasic) OPEN "PYTH.TXT" FOR OUTPUT AS #1

FOR C = 1 TO 100

N = 0

FOR A = 1 TO C

FOR B = 1 TO C

D = SQR(A * A + B * B)

IF D > C AND D < C + 1 THEN N = N + 1

NEXT B

NEXT A

PRINT #1, N;

NEXT C

CLOSE

CROSSREFS

Sequence in context: A137292 A047500 A131613 this_sequence A111801 A108372 A066542

Adjacent sequences: A138491 A138492 A138493 this_sequence A138495 A138496 A138497

KEYWORD

easy,nonn

AUTHOR

Rick Walcott (rick(AT)campbellsci.com), May 09 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 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research