OFFSET
1,3
COMMENTS
Numbers k >= 1 such that 2^k + 1 is present in this sequence are given by {1} U A138968, and the corresponding primes, A000040(1+k) are given by A007645, i.e., 3 and primes of the form 6m + 1. Proof: A276086(2) = 3, and for any prime p in A047257, A276086(p) is a multiple of 9, thus 3*9 = 3^3 is already "over the quota" for prime factor 3. On the other hand, for any prime p in A045331, A276086(p) is not a multiple of 9, thus multiplying it with A276086(2) = 3 is allowed.
LINKS
EXAMPLE
PROG
(PARI)
search_up_to_2_e = 20;
choosebybits(v, m) = { my(s=vector(hammingweight(m)), i=j=1); while(m>0, if(m%2, s[j] = v[i]; j++); i++; m >>= 1); s; };
A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
A359550(n) = { my(pp); forprime(p=2, , pp = p^p; if(!(n%pp), return(0)); if(pp > n, return(1))); };
is_it(ps) = { my(n=factorback(ps), d, m=1); for(i=1, #ps, d=ps[i]; m *= A276086(n/d); if(!A359550(m), return(0))); (1); };
A392604_list(up_to_2_e) = { my(lista=List([]), all_ps=primes(up_to_2_e)); for(w=0, (2^up_to_2_e)-1, if(is_it(choosebybits(all_ps, w)), listput(lista, w))); Vec(lista); };
v392604 = A392604_list(search_up_to_2_e);
A392604(n) = v392604[n];
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Jan 21 2026
STATUS
approved
