OFFSET
2,2
COMMENTS
Sum of all terms gives 365.
EXAMPLE
For n=4 three dates (1st of March, 2nd of February, 3rd of January) sum to n, so a(4) = 3.
MAPLE
(p-> add(coeff(p, x, i), i=2..degree(p)))(add(add(x^(i+j), j=1..
[31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][i]), i=1..12)); # Alois P. Heinz, Dec 27 2024
PROG
(Python)
sequence = []
for year in range(2, 43):
current_count = 0
for month, days_in_month in zip(range(1, 13), (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)):
for day in range(1, days_in_month + 1):
if month + day == year:
current_count += 1
sequence += [current_count]
CROSSREFS
KEYWORD
nonn,dumb,easy,fini,full,new
AUTHOR
Manuel Biwer, Dec 27 2024
STATUS
approved