[go: up one dir, main page]

login
A236686
Possible values for positive integers a,b,c,d such that 1/a + 1/b + 1/c + 1/d = 1.
0
2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 18, 20, 24, 42
OFFSET
1,1
COMMENTS
See A236681 and the link for further motivation.
LINKS
J. Baez, 42, May 25, 2013.
EXAMPLE
The solutions [a,b,c,d] of 1/a + 1/b + 1/c + 1/d = 1 are, in lexicographical order: {[2, 3, 7, 42], [2, 3, 8, 24], [2, 3, 9, 18], [2, 3, 10, 15], [2, 3, 12, 12], [2, 4, 5, 20], [2, 4, 6, 12], [2, 4, 8, 8], [2, 5, 5, 10], [2, 6, 6, 6], [3, 3, 4, 12], [3, 3, 6, 6], [3, 4, 4, 6], [4, 4, 4, 4]}.
PROG
(PARI) a=[]; forvec(v=vector(3, i, [2, 99]), numerator(s=sum(j=1, 3, 1/v[j], -1))==-1&&a=setunion(a, Set(v)), 1); a
(PARI) /* to display the solutions */ forvec(v=vector(3, i, [2, 99]), numerator(s=sum(j=1, 3, 1/v[j], -1))==-1&&-1/s>=v[3]&&print1(concat(v, -1/s), ", "), 1)
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
M. F. Hasler, Jan 29 2014
STATUS
approved