A031139 Number of letters in English words for months of year.
7, 8, 5, 5, 3, 4, 4, 6, 9, 7, 8, 8, 7, 8, 5, 5, 3, 4, 4, 6, 9, 7, 8, 8, 7, 8, 5, 5, 3, 4, 4, 6, 9, 7, 8, 8, 7, 8, 5, 5, 3, 4, 4, 6, 9, 7, 8, 8, 7, 8, 5, 5, 3, 4, 4, 6, 9, 7, 8, 8, 7, 8, 5, 5, 3, 4, 4, 6, 9, 7, 8, 8, 7, 8, 5, 5, 3, 4, 4, 6, 9, 7, 8, 8
Offset: 1
Examples
a(1) = 7 because January has 7 letters.
References
- GCHQ, The GCHQ Puzzle Book, Penguin, 2016. See page 60.
Links
- Time and Date, A Calendar website.
- Index entries for sequences related to calendars.
- Index to 12-periodic sequences.
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,0,0,1).
Programs
-
Mathematica
PadRight[{}, 72, {7, 8, 5, 5, 3, 4, 4, 6, 9, 7, 8, 8}] (* or *) Array[StringLength@ DateString[DateObject[{0, Mod[#, 12] + 1, 1, 0, 0, 0}, "Month"], {"MonthName"}] &, 72, 0] (* Michael De Vlieger, Feb 25 2018 *)
-
PARI
A031139(n)=digits(879644355878)[12-n%12] \\ M. F. Hasler, Mar 05 2018
Formula
From Elmo R. Oliveira, Jul 18 2024: (Start)
G.f.: x*(7 + 8*x + 5*x^2 + 5*x^3 + 3*x^4 + 4*x^5 + 4*x^6 + 6*x^7 + 9*x^8 + 7*x^9 + 8*x^10 + 8*x^11)/(1 - x^12).
a(n) = a(n-12) for n > 12. (End)
Comments