OFFSET
1,2
COMMENTS
The scatterplot shows an interesting pattern where many terms lie on one decreasing straight line below which the remaining terms are distributed more randomly although some are also aligned.
EXAMPLE
For n = 1, 1 is the least integer such that 3 which is the digit sum of prime(1) + 1 = 2 + 1 = 3 divides the concatenation of prime(1) - 1 and prime(1) = 12 since 12/3 = 4.
For n = 5, 1 is the least integer such that 3 which is the digit sum of prime(5) + 1 = 11 + 1 = 12 divides the concatenation of prime(5) - 1 and prime(5) = 1011 since 1011/3 = 337.
For n = 8 , 70 is the least integer such that 17 which is the digit sum of prime(8) + 70 = 19 + 70 = 89 divides the concatenation of prime(8) -1 and prime(8) = 1819 since 1819/17 = 107.
MATHEMATICA
a[n_]:=Module[{k=0}, Until[Divisible[FromDigits[Join[IntegerDigits[Prime[n]-1], IntegerDigits[Prime[n]]]], DigitSum[Prime[n]+k]], k++]; k]; Array[a, 73] (* James C. McMahon, Aug 04 2025 *)
PROG
(PARI) a(n) = my(c=fromdigits(concat(digits(prime(n)-1), digits(prime(n)))), k=1); while(c%sumdigits(prime(n)+k), k++); k;
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Claude H. R. Dequatre, Jul 28 2025
STATUS
approved
