OFFSET
1,3
COMMENTS
A more general form of Rassias's conjecture states that for every positive integer a there are two primes p and q such that 2*a*p = q+1.
a(n)=1 for n in A137288. - Robert Israel, Apr 18 2019
By Dirichlet's theorem on primes in arithmetic progressions, a(n) exists. - Robert Israel, May 12 2019
REFERENCES
Michael Th. Rassias, Problem-Solving and Selected Topics in Number Theory, Springer-Verlag, NY, 2011, pp. xi-xii.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
f:= proc(n) local k, p;
p:= ithprime(n);
for k from 1 do
if isprime(2*k*p-1) then return k fi
od
end proc:
map(f, [$1..100]); # Robert Israel, Apr 18 2019
MATHEMATICA
a[n_]:=Module[{a=1}, While[!PrimeQ[2*a*Prime[n]-1], a++]; a];
a/@Range[110]
PROG
(PARI) a(n) = my(p=prime(n)); for(k=1, oo, if(ispseudoprime(2*k*p-1), return(k))) \\ Felix Fröhlich, Apr 17 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Ivan N. Ianakiev, Apr 17 2019
STATUS
approved