OFFSET
1,1
COMMENTS
All terms among the first 10^10 primes equal 1 mod 6 (verified using PARI).
The proof is easy: if n > 2, prime(n) mod 6 can be 1 or 5. If p is prime that is congruent to 5 mod 6, then p is the form of 3*k-1. If there is a number of the form 3*k-1, its sum of digits is also must be of the form 3*t-1. At this point, 2*p+1 is the form of 2*(3*k-1)+1 = 6*k-1 and sum of digits of p+1 is the form of 3*t-1+1 = 3*t. Since 6*k-1 is never divisible by 3*t, there is no member that is congruent to 5 mod 6 in this sequence. So sequence contains only the primes which are congruent to 1 mod 6. - Altug Alkan, Apr 07 2016
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 1..10000
EXAMPLE
For p=181, 2*181+1=363 and the sum of digits of 181+1 is 11, and 363 is divisible by 11; so 181 is a term.
MATHEMATICA
Select[Prime[Range[5000]], Divisible[2*#+1, Total[IntegerDigits[#+1]]]&]
PROG
(PARI) forprime(x=2, 30000, (2*x+1)%sumdigits(x+1)==0 && print1(x", "))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Waldemar Puszkarz, Jan 16 2016
STATUS
approved