A384792 Smallest number with a n-character traditional Japanese notation.
1, 11, 21, 121, 221, 1121, 1221, 11121, 11221, 111221, 211221, 1211221, 2211221, 11211221, 12211221, 111211221, 112211221, 1112211221, 2112211221, 12112211221, 22112211221, 112112211221, 122112211221, 1112112211221
Offset: 1
Examples
Since we're excluding zero, the smallest 1-character number is 1 (一), so a(1)=1. Numbers from 1 to 10 use only one character. The smallest number requiring two characters is 11 (十一), making a(2)=11. Numbers from 12 to 19 also use two characters (ten + a character for 2-9), and 20 is also two characters (二十). The first number to require three characters is 21 (二十一), thus a(3)=21. To introduce a fourth character, we must use 百 (100). While 100 itself only uses one character, combining it with the smallest 3-character number, a(3) (which is 21), creates the smallest 4-character number: 121 (百二十一). Therefore, a(4)=121. To increase the character count further, we apply the same principle: we add a character in front of a(4). The smallest digit we can introduce is '二' (two). This yields 221 (二百二十一) as the smallest number with five characters. Therefore, a(5)=221. The next available character to add is '千' (thousand), but in our convention, '一千' (one thousand) uses two characters. We prepend this to a(4) (the smallest 4-character number) to form 1121 (一千百二十一), which is the smallest 6-character number. Thus, a(6)=1121. Following the same pattern, we add '一千' (one thousand) to the beginning of a(5) (the smallest 5-character number). This results in 1221 (一千二百二十一), which is the smallest number requiring seven characters. Therefore, a(7)=1221.
References
- Yoshida, Mitsuyoshi. Jinkōki. 1627.
Links
- Renaud Gaudron, Table of n, a(n) for n = 1..103
- Wikipedia, Japanese numerals
Programs
-
Python
# Note: Valid for n <= 103, corresponding to a(n) < 10^52 def a(n): return [33697,34000,33700,64000,36700,67000,33970,37000][n&7]*10**(n>>1) //30300
Formula
(By construction, valid for n<= 103, corresponding to a(n) < 10^52)
Option 1: Digit pattern
For p>=0,
a(8*p+1) is a '1', followed by '1221' p times.
a(8*p+2) is a '11', followed by '1221' p times.
a(8*p+3) is a '21', followed by '1221' p times.
a(8*p+4) is a '121', followed by '1221' p times.
a(8*p+5) is a '221', followed by '1221' p times.
a(8*p+6) is a '1121', followed by '1221' p times.
a(8*p+7) is a '1221' p+1 times.
a(8*p+8) is a '11121', followed by '1221' p times.
Option 2: Closed form
For p>=0,
a(8*p+1) = (34/303)*10^(4*p+1)-37/303
a(8*p+2) = (337/303)*10^(4*p+1)-37/303
a(8*p+3) = (64/303)*10^(4*p+2)-37/303
a(8*p+4) = (367/303)*10^(4*p+2)-37/303
a(8*p+5) = (67/303)*10^(4*p+3)-37/303
a(8*p+6) = (3397/303)*10^(4*p+2)-37/303
a(8*p+7) = (37/303)*10^(4*(p+1))-37/303
a(8*p+8) = (33697/30300)*10^(4*(p+1))-37/303
Comments