OFFSET
1,2
COMMENTS
Refer to arrangement same as A005169: "A fountain is formed by starting with a row of coins, then stacking additional coins on top so that each new coin touches two in the previous row". The 5 curves coins patterns consist of a part of circumference and forms continuous area. There is total 13 distinct patterns. I would like to call "5C4S" type as it cover 4 coins and symmetry. When packing 5C4S into fountain of coins base n, the total number of 5C4S is A001399, the coins left is a(n) and void is A230276. See illustration in links.
LINKS
Kival Ngaokrajang, Illustration of initial terms (U)
FORMULA
G.f.: x*(x^3 - 2*x^2 + 2*x + 1)/((1-x)*(1-x^2)*(1-x^3)) (conjectured). - Ralf Stephan, Oct 17 2013
PROG
(Small Basic)
a[1]=1
d[2]=2
For n = 1 To 100
If n+1 >= 3 Then
If Math.Remainder(n+1, 3)=math.Remainder(n+1, 6) Then
d2=1
Else
d2=Math.Remainder(n+1, 3)+math.Remainder(n+1, 6)*Math.Power(-1, math.Remainder(n+1, 2))
EndIf
d[n+1]=d[n]+d2
EndIf
a[n+1]=a[n]+d[n+1]
TextWindow.Write(a[n]+", ")
EndFor
CROSSREFS
KEYWORD
nonn
AUTHOR
Kival Ngaokrajang, Oct 15 2013
STATUS
approved