OFFSET
1,2
FORMULA
a(1) = 1; a(n) = Sum_{i=1..n-1} (7 - 4*(floor(sqrt(i)) - floor(sqrt(i - 1)) + floor(sqrt(i + 1) + 1/2) - floor(sqrt(i) + 1/2)) - 2*(floor(sqrt(i + 1)) - floor(sqrt(i)))) for n > 1.
EXAMPLE
---------------------------------------------------------------------------
partitions of k into two parts
---------------------------------------------------------------------------
k 2 3 4 5 6 7 8 9
[1,7] [1,8]
[1,5] [1,6] [2,6] [2,7]
[1,3] [1,4] [2,4] [2,5] [3,5] [3,6]
[1,1] [1,2] [2,2] [2,3] [3,3] [3,4] [4,4] [4,5]
----------------------------------------------------------------------------
n circle centers number of regions formed
----------------------------------------------------------------------------
1 (1,1) 1
2 (1,1), (1,2) 3
3 (1,1), (1,2), (1,3) 6
4 (1,1), (1,2), (1,3), (2,2) 11
5 (1,1), (1,2), (1,3), (2,2), (1,4) 14
6 (1,1), (1,2), (1,3), (2,2), (1,4), (2,3) 21
...
MATHEMATICA
Join[{1}, Table[Sum[7 - 4 (Floor[Sqrt[i]] - Floor[Sqrt[i - 1]] + Floor[Sqrt[i + 1] + 1/2] - Floor[Sqrt[i] + 1/2]) - 2 (Floor[Sqrt[i + 1]] - Floor[Sqrt[i]]), {i, n - 1}], {n, 2, 80}]]
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Wesley Ivan Hurt, Mar 30 2021
STATUS
approved