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!)
A066213 Numbers which are sums of squares of some subset of divisors. 4
1, 4, 9, 16, 20, 25, 30, 36, 49, 64, 80, 81, 90, 100, 120, 121, 126, 130, 144, 150, 169, 180, 195, 196, 210, 225, 252, 256, 264, 270, 272, 280, 289, 294, 300, 315, 320, 324, 330, 336, 350, 360, 361, 378, 390, 396, 400, 414, 420, 441, 450, 468, 480, 484, 500 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
If m is in the sequence then so is m*k^2 for k >= 1. - David A. Corneth, Jan 22 2024
LINKS
David A. Corneth, PARI program
EXAMPLE
20 is in the list since 20 = 2^2 + 4^2 and 2 and 4 are divisors of 20
MAPLE
isA066213 := proc(n)
local S, els;
S:=subsets(numtheory[divisors](n));
while not S[finished] do
els:=S[nextvalue]() ;
if add(d^2, d=els) = n then
return true ;
end if ;
end do;
false
end proc:
for n from 1 do
if isA066213(n) then
print(n) ;
end if;
end do: # R. J. Mathar, Oct 09 2023
PROG
(PARI) \\ See PARI link
CROSSREFS
Sequence in context: A313332 A313333 A313334 * A355854 A010441 A046871
KEYWORD
nonn
AUTHOR
Erich Friedman, Dec 17 2001
EXTENSIONS
Offset 1 from David A. Corneth, Jan 22 2024
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 18 15:48 EDT 2024. Contains 371780 sequences. (Running on oeis4.)