|
Search: id:A111359
|
|
|
| A111359 |
|
Positive integers n such that the difference between the n-th prime and the sum of the divisors of n is congruent to 1 (mod n). |
|
+0 1
|
|
| 3, 6, 9, 10, 13, 42, 73, 184, 511, 690, 3275, 18918, 20574, 21340, 44140, 116669, 543214, 567016, 637321, 688792, 878649, 2582446, 27067133
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
FORMULA
|
n's such that (prime_n - sigma(n))== 1 (mod n); A000040(n)-A000203(n)==1 (mod n). - Robert G. Wilson v (rgwv(at)rgwv.com), Nov 09 2005
|
|
EXAMPLE
|
The 42nd prime is 181. The divisors of 42 are 1, 2, 3, 6, 7, 14, 21, 42 and their sum is 96. 181-96 = 85. 85 = 1 mod 42.
|
|
MATHEMATICA
|
Select[Range[10^8], Mod[Prime[ # ] - Plus @@ Divisors[ # ], # ] == 1 &] (*Chandler*)
fQ[n_] := Mod[Prime[n] - DivisorSigma[1, n], n] == 1; t = {}; Do[ If[ fQ[n], AppendTo[t, n]], {n, 50000000}]; t (* Robert G. Wilson v *)
|
|
CROSSREFS
|
Adjacent sequences: A111356 A111357 A111358 this_sequence A111360 A111361 A111362
Sequence in context: A055264 A113502 A061904 this_sequence A085782 A085780 A107084
|
|
KEYWORD
|
more,nonn
|
|
AUTHOR
|
Ray G. Opao (1260(AT)email.com), Nov 07 2005
|
|
EXTENSIONS
|
a(22) and a(23) from Ray Chandler (rayjchandler(AT)sbcglobal.net) and Robert G. Wilson v (rgwv(at)rgwv.com), Nov 09 2005
|
|
|
Search completed in 0.002 seconds
|