A177711 Natural numbers which are not sums of one or more distinct primorials.
4, 5, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 34, 35, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85
Offset: 1
Examples
1 and 2 are not in the sequence, as they are the first and second primorials, 0# and 1#. 3 is not in the sequence, as 3 = 1+2. Neither 4 nor 5 can be the sum of distinct primorials (i.e. 4=2+2 or 5 = 2+2+1 repeat a primorial). 6 is not in the sequence, as it is 3#. 7 and 8 are not in the sequence as 7 = 6+1 and 8 = 6+2. 9 is not in the sequence, as 9 = 6+2+1.
Links
Crossrefs
Programs
-
PARI
is_A177711(n) = { my(p=2); while(n, if(n%p > 1, return(1)); n = n\p; p = nextprime(1+p)); (0); }; \\ Antti Karttunen, Feb 17 2025
Comments