login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A307471 SanD primes with d = 14: p and p+d are both prime and digit sum A007953(p*(p+d)) = d. 10
5, 17, 23, 29, 53, 59, 83, 113, 167, 383, 443, 1103, 1409, 2003, 3203, 11483, 100043, 200003, 1001003 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Frankel et al. call "S(um)anD(ifference) number" any n such that the sum of digits of n(n+d) equals d for some d, and SanD primes if in addition, n and n+d are prime. The only prime solution with odd d is n = 2, d = 5. All other SanD primes must have d = 14 (mod 18). This here is the list of SanD-14 primes.
Sequences A307472 - A307478 list the SanD-d primes for d = 14 + 18k, 1 <= k <= 7.
Sequence A307479 lists the union of all SanD primes: this is the main entry for this family of sequences.
Sequence A307480 lists the smallest SanD prime for any possible d = 14 + 18k, k = -1/2, 0, 1, 2, 3, ...
Terms (not necessarily the next terms) include 10^16+10^15+3, 10^22+10^21+3, 2*10^24+3, 10^28+10^24+3, 10^35+10^2+3, 10^43+10^14+3, 10^45+10^16+3, 10^46+10^26+3, 10^57+10^32+3, 10^90+10^45+3, 10^139+10^53+3. - Robert Israel, Apr 10 2019
LINKS
Freeman J. Dyson, Norman E. Frankel, Anthony J. Guttmann: SanD primes and numbers, arxiv:1904.03573 [math.CA], April 7, 2019
EXAMPLE
a(1) = 5 = A307471(2) = A307480(0) is the smallest SanD-14 prime: 5 and 5 + 14 = 19 both are prime and the digit sum A007953(5*19) = 9 + 5 = 14.
MAPLE
sand:= (n, d) -> isprime(n) and isprime(n+d) and convert(convert(n*(n+d), base, 10), `+`)=d:
select(sand, [seq(i, i=5..2*10^6, 6)], 14); # Robert Israel, Apr 10 2019
MATHEMATICA
sd14Q[p_]:=PrimeQ[p+14]&&Total[IntegerDigits[p(p+14)]]==14; Select[Prime[Range[ 80000]], sd14Q] (* Harvey P. Dale, Jun 18 2023 *)
PROG
(PARI) print_A307471(N, d=14)=forprime(p=2, , isprime(p+d)&&sumdigits(p*(p+d))==d&&!print1(p, ", ")&&!N--&&break)
CROSSREFS
Cf. A307472 - A307478 (d = 14+18k, k=1..7), A307479 (any d: main entry), A307480 (smallest prime for given d).
Sequence in context: A240031 A260427 A091209 * A226671 A226674 A309770
KEYWORD
nonn,base,more
AUTHOR
M. F. Hasler, Apr 09 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)