OFFSET
1,3
COMMENTS
This can be used to identify P+1 values to primality test potential primes P of the form 3^k+2, i.e., A051783.
FORMULA
a(n) = A301917(n-1) + 1 for n > 2.
EXAMPLE
All values of 3^k+3 are multiples of 2, so 3^0+3 = 4 is the least value of k which is a multiple of 2.
a(10) = 5 and A301918(10) = 41 so 3^5+3 = 246 is the first multiple of 41 which can be written in the form 3^k+3.
CROSSREFS
KEYWORD
nonn
AUTHOR
Luke W. Richards, Mar 28 2018
STATUS
approved