feat(math): add inverse multiplicative function operations (#1867) - #2058
feat(math): add inverse multiplicative function operations (#1867)#2058morluto wants to merge 1 commit into
Conversation
Add inverse_multiplicative domain with 3 operations: Euler totient preimage computation, preimage count, and preimage power sums. Uses exact enumeration over bounded ranges. Closes #1867
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Deep review summaryVerdict: REQUEST CHANGES — The ratio Therefore Replace range scanning with a complete inverse-totient algorithm derived from recursively enumerating admissible prime powers whose totients divide the remaining target, with canonical duplicate elimination and a proof that the branch set is complete. Alternatively, expose an explicitly bounded search result that states the searched interval and never calls the result the full preimage. The current runtime bound is also poor: for target Add decisive regressions:
|
Summary
Implements the
inverse_multiplicativedomain with 3 atomic operations for computing inverse images of the Euler totient function.Closes #1867
Operations
number_theory.euler_phi.preimages.computenumber_theory.euler_phi.preimage_count.computenumber_theory.euler_phi.preimage_power_sums.computeDesign
Continue this on Linzumi