A300307 Number of solutions to 1 +- 3 +- 6 +- ... +- n*(n+1)/2 == 0 mod n.
1, 2, 0, 4, 4, 16, 12, 32, 20, 112, 88, 384, 308, 1264, 1056, 4096, 3852, 15120, 13820, 52608, 49824, 190848, 182356, 704512, 671540, 2582128, 2475220, 9615744, 9256428, 35868672, 34636840, 134217728, 130021392, 505292976, 491156304, 1909836416, 1857282536
Offset: 1
Keywords
Examples
Solutions for n = 7: ------------------------------ 1 +3 +6 +10 +15 +21 +28 = 84. 1 +3 +6 +10 +15 +21 -28 = 28. 1 +3 +6 +10 +15 -21 +28 = 42. 1 +3 +6 +10 +15 -21 -28 = -14. 1 +3 -6 +10 -15 +21 +28 = 42. 1 +3 -6 +10 -15 +21 -28 = -14. 1 +3 -6 +10 -15 -21 +28 = 0. 1 +3 -6 +10 -15 -21 -28 = -56. 1 -3 +6 -10 -15 +21 +28 = 28. 1 -3 +6 -10 -15 +21 -28 = -28. 1 -3 +6 -10 -15 -21 +28 = -14. 1 -3 +6 -10 -15 -21 -28 = -70.
Links
- Seiichi Manyama, Table of n, a(n) for n = 1..2^11
Programs
Formula
a(2^n) = 2^A000325(n) for n>0 (conjectured).