OFFSET
0,3
COMMENTS
On the Japanese TV show "Tsuki no Koibito", a girl told her boyfriend that she saw a heart in 4 coins. Actually there are a total of 6 distinct patterns appearing in 2 X 2 coins in which each pattern consists of a part of the perimeter of each coin and forms a continuous area.
a(n) is the number of coins left after packing fixed orientation heart patterns (type 4c2s1: 4-curve cover 2 coins and symmetry) into n X n coins. The total number of hearts is A093005 and the number of voids left is A093353. See illustration in links.
Same as A114752 with a(0) also defined. - R. J. Mathar, Feb 27 2026
LINKS
Kival Ngaokrajang, Illustration of initial terms (U)
Index entries for linear recurrences with constant coefficients, signature (0,2,0,-1).
FORMULA
From Colin Barker, Oct 30 2013: (Start)
a(n) = (-1 + (-1)^n - (-3 + (-1)^n)*n)/2.
a(n) = n for n even.
a(n) = 2*n-1 for n odd.
a(n) = 2*a(n-2) - a(n-4) for n >= 6.
G.f.: x*(3*x^2+2*x+1)/((x-1)^2*(x+1)^2). (End)
MATHEMATICA
With[{nn=60}, Join[Riffle[Range[0, nn, 2], Range[1, 2nn+1, 4]]]] (* Harvey P. Dale, Feb 11 2015 *)
PROG
(Small Basic)
For n = 0 To 100
If Math.Remainder(n, 2) = 0 then
a = n
Else
a = a + n
EndIf
TextWindow.Write(a+", ")
EndFor
(PARI) Vec(x*(3*x^2+2*x+1)/((x-1)^2*(x+1)^2) + O(x^100)) \\ Colin Barker, Oct 30 2013
(PARI) a(n) = (-1 + (-1)^n - (-3 + (-1)^n)*n)/2 \\ David Cleaver, Feb 14 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Kival Ngaokrajang, Oct 19 2013
EXTENSIONS
a(3) corrected, formulas and programs edited by David Cleaver, Feb 14 2026
STATUS
approved
