A345388 a(n) = 0, 1, or 2 according to whether A065091(n), the n-th odd prime, is in A001122, A139035, or A268923, respectively.
0, 0, 1, 0, 0, 2, 0, 1, 0, 2, 0, 2, 2, 1, 0, 0, 0, 0, 1, 2, 1, 0, 2, 2, 0, 1, 0, 2, 2, 2, 0, 2, 0, 0, 2, 2, 0, 1, 0, 0, 0, 1, 2, 0, 1, 0, 2, 0, 2, 2, 1, 2, 2, 2, 1, 0, 1, 2, 2, 2, 0, 2, 1, 2, 0, 2, 2, 0, 0, 2, 1, 1, 0, 0, 1, 0, 2, 2, 2, 0, 0, 2, 2, 2, 0, 2, 2
Offset: 1
Keywords
Examples
For P=5, the generated partition set is: (1,4), (3,2), (4,1), (2,3), (1,4), and thus 5 is GOOD, so a(2)=0. For P=7, the generated partition set is: (1,6), (4,3), (2,5), (1,6), and thus 7 is HALF-GOOD, so a(3)=1. For P=17, the generated partition set is: (1,16), (9,8), (13,4), (15,2), (16,1), (8,9), (4,13), (2,15), (1,16), but 3, 5, 6, 7, 10, 11, 12, and 14 do not appear, and thus 17 is BAD, so a(6)=2.
Links
- James Tanton, How to fold things into thirds, sevenths, and thirty-sevenths!, video, May 14, 2021.
Extensions
Name edited by Felix Fröhlich, Jun 28 2021
Comments