You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# We shall call a positive integer A an "Alexandrian integer", if there exist integers p, q, r such that:
# A = p · q · r and A^(-1)=p^(-1)+q^(-1)+r^(-1)
# For example, 630 is an Alexandrian integer (p = 5, q = ?7, r = ?18). In fact, 630 is the 6^(th) Alexandrian integer, the first 6 Alexandrian integers being: 6, 42, 120, 156, 420 and 630.
# Find the 150000^(th) Alexandrian integer.
#can be reduced to finding p>=q>0 such that r=(pq-1)/(p+q) is integer (and then the Alexandrian number is pqr).
#This can be reduced to the following: given p, find all the q's such that (p+q) divides p^2+1