OFFSET
1,3
COMMENTS
Conjecture: Let r be 1 or -1. Then, any integer n > 1 can be written as (p-r)/6 + 2^a*3^b, where p is a prime, and a and b are nonnegative integers; in other words, 6*n+r can be written as p + 2^k*3^m, where p is a prime, and k and m are positive integers.
We have verified this for all n = 2..10^9.
Conjecture verified up to n = 10^11. - Giovanni Resta, Jul 03 2019
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(2) = 1 since 2 = (7-1)/6 + 2^0*3^0 with 7 prime.
a(3) = 2 since 3 = (13-1)/6 + 2^0*3^0 = (7-1)/6 + 2^1*3^0 with 13 and 7 prime.
MATHEMATICA
tab={}; Do[r=0; Do[If[PrimeQ[6(n-2^a*3^b)+1], r=r+1], {a, 0, Log[2, n]}, {b, 0, Log[3, n/2^a]}]; tab=Append[tab, r], {n, 1, 100}]; Print[tab]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Jul 02 2019
STATUS
approved