cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A126160 Number of betrothed pairs (m,n) with m <=10^k (and k=1,2,3,...), where a betrothed pair satisfies sigma(m)=sigma(n)=m+n+1 and m

Original entry on oeis.org

0, 1, 2, 8, 9, 17, 46, 79, 180, 404, 882, 1946, 4122
Offset: 1

Views

Author

Ant King, Dec 19 2006

Keywords

Comments

Also called quasi-amicable pairs, or reduced amicable pairs.

Examples

			a(7)=46 because there are 46 betrothed pairs (m,n) with m<=10^7
		

Crossrefs

Programs

  • Mathematica
    s[n_]:=DivisorSigma[1,n]-n;BetrothedNumberQ[n_]:=If[s[s[n]-1]==n+1 && n>1,True,False];BetrothedPairList[k_]:=(anlist=Select[Range[k],BetrothedNumberQ[ # ] &]; prlist=Table[Sort[{anlist[[n]],s[anlist[[n]]]-1}],{n,1,Length[anlist]}]; Union[prlist,prlist]);data=BetrothedPairList[10^6];Table[Length[Select[data,First[ # ]<10^k &]],{k,1,6}]

Extensions

a(13) from Giovanni Resta, Jul 24 2019