|
|
A074253
|
|
Numbers n such that the sum of squarefree numbers from the smallest prime factor of n to the largest prime factor of n is a square.
|
|
1
|
|
|
1, 111, 159, 299, 323, 333, 477, 555, 777, 793, 795, 913, 922, 999, 1113, 1221, 1431, 1443, 1665, 1749, 1844, 1887, 2067, 2109, 2331, 2385, 2553, 2703, 2766, 2775, 2867, 2993, 2997, 3021, 3219, 3339, 3441, 3657, 3663, 3688, 3885, 3887, 3975, 4107, 4293
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
EXAMPLE
|
111 = 3*37 and the sum of squarefree numbers between 3 and 37 is 3 + 5 + 6 + 7 + 10 + 11 + 13 + 14 + 15 + 17 + 19 + 21 + 22 + 23 + 26 + 29 + 30 + 31 + 33 + 34 + 35 + 37 = 441, a square.
|
|
MAPLE
|
N:= 10^4: # to get all terms <= N
sf:= select(numtheory:-issqrfree, [$1..N]):
ssf:= ListTools:-PartialSums(sf):
filter:= proc(n) local r, i, j;
r:= numtheory:-factorset(n);
j:= ListTools:-BinarySearch(sf, max(r));
i:= ListTools:-BinarySearch(sf, min(r));
issqr(ssf[j] - ssf[i-1])
end proc:
filter(1):= true:
|
|
MATHEMATICA
|
Select[Range[5000], IntegerQ@ Sqrt@ Total@ Select[Range[First@ #, Last@ #], SquareFreeQ] &[FactorInteger[#][[All, 1]]] &] (* Michael De Vlieger, Jan 31 2018 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|