|
Search: id:A155919
|
|
|
| A155919 |
|
Number of squared hypotenuses mod n in three dimensions. |
|
+0 1
|
|
| 1, 2, 3, 4, 5, 6, 7, 7, 9, 10, 11, 12, 13, 14, 15, 14, 17, 18, 19, 20, 21, 22, 23, 21, 25, 26, 27, 28, 29, 30, 31, 27, 33, 34, 35, 36, 37, 38, 39, 35, 41, 42, 43, 44, 45, 46, 47, 42, 49, 50, 51, 52, 53, 54, 55, 49, 57, 58, 59, 60, 61, 62, 63, 54, 65, 66, 67, 68, 69, 70, 71, 63
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
COMMENT
|
Number of images of the map (x,y,z) -> x^2+y^2+z^2 in Z_n.
|
|
MATHEMATICA
|
(For[v = Table[0, {m, 1, n^3}]; m = 1; i = 0, i < n, i++, For[j = 0, j < n, j++, For[k = 0, k < n, k++, v[[m]] = Mod[i^2 + j^2 + k^2, n]; m = m + 1]]]; Length[Union[v]])
|
|
CROSSREFS
|
Sequence in context: A060431 A124808 A017862 this_sequence A075011 A037851 A037887
Adjacent sequences: A155916 A155917 A155918 this_sequence A155920 A155921 A155922
|
|
KEYWORD
|
mult,nonn
|
|
AUTHOR
|
Steven Finch (Steven.Finch(AT)inria.fr), Jan 30 2009
|
|
|
Search completed in 0.003 seconds
|