login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A008684 Dates of successive days in Gregorian calendar. 2

%I #26 Mar 03 2022 12:36:52

%S 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,

%T 27,28,29,30,31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,

%U 22,23,24,25,26,27,28,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16

%N Dates of successive days in Gregorian calendar.

%C Starting with January and assuming not a leap year. - _Harvey P. Dale_, Sep 24 2012

%H Reinhard Zumkeller, <a href="/A008684/b008684.txt">Table of n, a(n) for n = 1..365</a>

%H <a href="/index/Ca#calendar">Index entries for sequences related to calendars</a>

%t Needs["Calendar`"]; Transpose[Table[DaysPlus[{2014,1,1},n],{n,0,364}]][[3]] (* _Harvey P. Dale_, Apr 26 2014 *)

%t DateRange[{2021,1,1},{2021,12,31}][[All,3]] (* _Harvey P. Dale_, Mar 03 2022 *)

%o (Haskell)

%o a008684 n = a008684_list !! (n-1)

%o a008684_list = concatMap (enumFromTo 1)

%o [31,28,31,30,31,30,31,31,30,31,30,31]

%o -- _Reinhard Zumkeller_, Jun 23 2013

%K nonn,nice,fini,full

%O 1,2

%A _N. J. A. Sloane_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 13 00:40 EDT 2024. Contains 375857 sequences. (Running on oeis4.)