reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
Number of distinct digits needed to write the calender calendar date of n-th day of a non-leap year in decimal representation, without leading zeros.
reviewed
editing
proposed
reviewed
editing
proposed
13 days need just 1 digit: {1, 11, 33, 53, 62, 94, 125, 157, 188, 220, 252, 305, 315} = {Jan 1, Jan 11, Feb 2, Feb 22, Mar 3, Apr 4, Nay May 5, Jun 6, Jul 7, Aug 8, Sep 9, Nov 1, Nov 11};
approved
editing
editing
approved
a(n) <= 4.
152 days need 2 digits: the first is the 2nd day = Jan 2, the last one is the 356th day = Dec 22;
. 20 | 3 2 3 3 3 3 3 3 3 3 3 3
. 20 | 3 2 3 3 3 3 3 3 3 3 3 3
. 21 | 2 2 3 3 3 3 3 3 3 3 2 2
. 22 | 2 1 2 2 2 2 2 2 2 3 2 2
. 23 | 3 2 2 3 3 3 3 3 3 4 3 3
. 24 | 3 2 3 2 3 3 3 3 3 4 3 3
. 25 | 3 2 3 3 2 3 3 3 3 4 3 3
. 26 | 3 2 3 3 3 2 3 3 3 4 3 3
. 27 | 3 2 3 3 3 3 2 3 3 4 3 3
. 28 | 3 2 3 3 3 3 3 2 3 4 3 3
. 29 | 3 _ 3 3 3 3 3 3 2 4 3 3
. 30 | 3 _ 2 3 3 3 3 3 3 3 3 4
. 31 | 2 _ 2 _ 3 _ 3 3 _ 3 _ 3 .
13 days need just 1 digit: {1, 11, 33, 53, 62, 94, 125, 157, 188, 220, 252, 305, 315} = {Jan 1, Jan 11, Feb 2, Feb 22, Mar 3, Apr 4, Nay 5, Jun 6, Jul 7, Aug 8, Sep 9, Nov 1, Nov 11};
152 days need 2 digits: the first is the 2nd day = Jan 2, the last is the 356th day = Dec 22;
192 days need 3 digits: the first is the 20th day = Jan 20, the last one is the last day of the year = Dec 31;
8 days need 4 digits: {296 .. 302, 364} = Oct 23 through Oct 29, and also the penultimate day of the year = Dec 30.