Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A057246
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A057246 s=0; d is divisor of n [here d<(n/d)]; if gcd(d,n/d)=1 or gcd(d,n/d)=d then s=s+d+(n/d); [if d=(n/d) then s=s+d] : sequence is s-n=n. See Mathematica program for more details. +0
1
6, 28, 6966, 15066 (list; graph; listen)
OFFSET

0,1

EXAMPLE

E.g. a(2)=28, gcd(1,28)=gcd(4,28/4)=1, gcd(2,28/2)=2, 1+28+4+7+2+14=56. 56-28=28.

MATHEMATICA

f[ n_Integer ] := (ds = Divisors[ n ]; sq = N[ Sqrt[ n ] ]; l = 1; While[ ds[[ l ] ] <= sq, l++ ]; l = l - 1; ds = Take[ ds, l ]; s = 1; k = 2; While[ k <= l, If[ GCD[ ds[[ k ] ], n/ds[[ k ] ] ] == 1 || GCD[ ds[[ k ] ], n/ds[[ k ] ] ] == ds[[ k ] ], s = s + ds[[ k ] ] + n/ds[[ k ] ] ]; k++ ]; If[ ds[[ -1 ] ] == n/ds[[ -1 ] ], s = s - d ]; s) Do[ If[ ! PrimeQ[ n ] && f[ n ] == n, Print[ n ] ], {n, 2, 33429000} ] - from Robert G. Wilson v Nov 09 2000

CROSSREFS

Sequence in context: A097464 A038182 A095723 this_sequence A074849 A100874 A047923

Adjacent sequences: A057243 A057244 A057245 this_sequence A057247 A057248 A057249

KEYWORD

more,nonn

AUTHOR

Naohiro Nomoto (6284968128(AT)geocities.co.jp), Sep 21 2000

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified August 29 17:54 EDT 2008. Contains 143238 sequences.


AT&T Labs Research