|
Search: id:A037175
|
|
|
| A037175 |
|
Numbers n such that |s(n)-n| = number of primes <= n, where s(n) is sigma(n)-n. |
|
+0 1
|
| |
|
|
OFFSET
|
1,1
|
|
|
MAPLE
|
with(numtheory):np:=0: for n from 1 to 300000 do if isprime(n) then np:=np+1 fi: if(abs(sigma(n)-2*n)=np) then printf("%d, ", n) fi od: (C. Ronaldo)
|
|
PROGRAM
|
(PARI) np=0; for(n=1, 10000000, if(isprime(n), np=np+1); if(abs(sigma(n)-2*n)==np, print1(n, ", "))) (Ronaldo)
|
|
CROSSREFS
|
Adjacent sequences: A037172 A037173 A037174 this_sequence A037176 A037177 A037178
Sequence in context: A066491 A101507 A047176 this_sequence A048613 A030072 A064219
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Naohiro Nomoto (6284968128(AT)geocities.co.jp)
|
|
EXTENSIONS
|
More terms from C. Ronaldo (aga_new_ac(AT)hotmail.com), Dec 30 2004
|
|
|
Search completed in 0.002 seconds
|