A260424 a(1) = 1, a(A206074(n)) = prime(a(n)), a(A205783(1+n)) = composite(a(n)), where A206074 and A205783 give binary codes for polynomials with coefficients 0 or 1 that are irreducible [resp. reducible] over Q.
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 29, 25, 26, 27, 31, 28, 37, 30, 32, 33, 34, 35, 41, 36, 44, 38, 43, 39, 47, 40, 46, 42, 53, 54, 45, 48, 49, 50, 59, 51, 61, 58, 52, 63, 67, 55, 71, 62, 56, 66, 57, 65, 73, 60, 79, 75, 83, 76, 89, 64, 68, 69, 109, 70, 97, 82, 101, 72, 103, 85, 81, 74, 127
Offset: 1
Keywords
Links
Crossrefs
Programs
-
PARI
allocatemem(123456789); default(primelimit,4294965247); uplim = 2^20; v255574 = vector(uplim); A255574 = n -> v255574[n]; A255572 = n -> (n - A255574(n) - 1); A257000(n) = polisirreducible(Pol(binary(n))); v255574[1] = 0; i=0; j=0; n=2; while((n < uplim), v255574[n] = v255574[n-1]+A257000(n); n++); A002808(n)={ my(k=-1); while( -n + n += -k + k=primepi(n), ); n}; \\ This function from M. F. Hasler A260424(n) = if(1==n, 1, if(A257000(n), prime(A260424(A255574(n))), A002808(A260424(A255572(n))))); for(n=1, 8192, write("b260424.txt", n, " ", A260424(n)));
Comments