Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A091143
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A091143 Number of Pythagorean triples mod 2^n; i.e. number of solutions to x^2 + y^2 = z^2 mod 2^n. +0
2
1, 4, 24, 96, 448, 1792, 7680, 30720, 126976, 507904, 2064384, 8257536, 33292288, 133169152, 534773760, 2139095040, 8573157376, 34292629504, 137304735744, 549218942976, 2197949513728, 8791798054912 (list; graph; listen)
OFFSET

0,2

COMMENT

This Mathematica program is much more efficient than the one given in A062775.

LINKS

T. D. Noe, Table of n, a(n) for n=0..100

FORMULA

a(2k) = (2^(k+1)-1) 2^(3k), a(2k-1) = (2^k-1) 2^(3k-1)

MATHEMATICA

Table[n = 2^k; b = Table[0, {n}]; Do[ b[[1 + Mod[i^2, n]]]++, {i, 0, n - 1}]; cnt = 0; Do[m = x^2 + y^2; cnt = cnt + b[[1 + Mod[m, n]]], {x, 0, n - 1}, {y, 0, n - 1}]; cnt, {k, 0, 13}]

CROSSREFS

Cf. A062775 (number of Pythagorean triples mod n).

Sequence in context: A119878 A054603 A100381 this_sequence A119920 A100738 A139238

Adjacent sequences: A091140 A091141 A091142 this_sequence A091144 A091145 A091146

KEYWORD

nonn

AUTHOR

T. D. Noe (noe(AT)sspectra.com), Dec 22 2003

EXTENSIONS

a(11) through a(13) from Robert G. Wilson v (rgwv(AT)rgwv.com), Dec 24 2003

More terms from T. D. Noe (noe(AT)sspectra.com), Feb 22 2007

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 25 13:42 EST 2009. Contains 167481 sequences.


AT&T Labs Research