OFFSET
1,1
COMMENTS
Months of 2000 are 1-12; months of 2001 are 13-24; months of 2002 are 25-36; and so on.
EXAMPLE
36 is a term because December 2002 (the 36th month starting with January 2000) starts on Sunday.
PROG
(Java)
Calendar calendar = new GregorianCalendar(2000, 0, 1);
for (int i=0; i <=1000; i++) {
if (calendar.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY)
System.out.printf("%d, ", i+1);
calendar.add(Calendar.MONTH, 1);
} /* Michel Marcus, May 03 2014 */
CROSSREFS
KEYWORD
nonn,less
AUTHOR
J. Lowell, Apr 28 2014
STATUS
approved