A217114 Greatest number (in decimal representation) with n nonprime substrings in base-4 representation (substrings with leading zeros are considered to be nonprime).
11, 59, 239, 251, 751, 1007, 1019, 3823, 4079, 4055, 16111, 16087, 16319, 16367, 48991, 64351, 65263, 65269, 65471, 253919, 260959, 261079, 261847, 261871, 916319, 1043839, 1047391, 1044463, 1047511, 3665279, 3140991, 4189567, 4118519, 4177759, 4189565, 4193239, 14661117
Offset: 0
Examples
a(0) = 11, since 11 = 23_4 (base-4) is the greatest number with zero nonprime substrings in base-4 representation. a(1) = 59 = 323_4 has 6 substrings in base-4 representation (2, 3, 3, 23, 32 and 323), only 32_4=14 is a nonprime substring. 59 is the greatest such number with 1 nonprime substring. a(2) = 239 = 3233_4 has 10 substrings in base-4 representation (2, 3, 3, 23, 32, 323, 233 and 3233), exactly 2 of them are nonprime substrings (32_4=14 and 33_4=15), and there is no greater number with 2 nonprime substrings in base-4 representation. a(11) = 16087 = 3323113_4 has 28 substrings in base-4 representation. The base-4 nonprime substrings are 1, 1, 32, 33, 231, 332, 3113, 3231, 32311, 33321 and 323113. There is no greater number with 11 nonprime substrings in base-4 representation.
Links
- Hieronymus Fischer, Table of n, a(n) for n = 0..100
Comments