OFFSET
1,1
COMMENTS
k is in this sequence iff A078926(k) > 0.
Also, ordered sides c of primitive triples (a, b, c) for integer-sided triangles where side a is the harmonic mean of the 2 other sides b and c, i.e., 2/a = 1/b + 1/c with b < a < c (A343893). - Bernard Schott, May 06 2021
LINKS
Ray Chandler, Table of n, a(n) for n = 1..10000 (duplicates removed by Sean A. Irvine)
FORMULA
a(n) = A024364(n)/2.
MAPLE
isA020886 := proc(an) local r::integer, s::integer ; for r from floor((an/2)^(1/2)) to floor(an^(1/2)) do for s from r-1 to 1 by -2 do if r*(r+s) = an and gcd(r, s) < 2 then RETURN(true) ; fi ; if r*(r+s) < an then break ; fi ; od ; od : RETURN(false) ; end : for n from 2 to 400 do if isA020886(n) then printf("%d, ", n) ; fi ; od ; # R. J. Mathar, Jun 08 2006
MATHEMATICA
A078926[n_] := Sum[Boole[n < d^2 < 2n && CoprimeQ[d, n/d]], {d, Divisors[ n/2^IntegerExponent[n, 2]]}];
Select[Range[1000], A078926[#]>0&] (* Jean-François Alcover, Mar 23 2020 *)
PROG
(PARI) is(n, f=factor(n))=my(P=apply(i->f[i, 1]^f[i, 2], [2-n%2..#f~]), nn=2*n); forvec(v=vector(#P, i, [0, 1]), my(d=prod(i=1, #v, P[i]^v[i]), d2=d^2); if(d2<nn && d2>n, return(1))); 0
list(lim)=my(v=List()); forfactored(n=6, lim\1, if(is(n[1], n[2]), listput(v, n[1]))); Vec(v) \\ Charles R Greathouse IV, Feb 03 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved