Jordan-Pólya numbers: Difference between revisions

Content added Content deleted
(→‎{{header|Wren}}: Corrected (hopefully) the Decompose function for both versions.)
(Added an option to the 'bonus' task.)
Line 12: Line 12:


;Bonus
;Bonus
Find and show on this page the '''800'''th, '''1,800'''th, '''2,800'''th and '''3,800'''th J-P numbers and also show their decomposition into factorials in highest to lowest order.
Find and show on this page the '''800'''th, '''1,800'''th, '''2,800'''th and '''3,800'''th J-P numbers and also show their decomposition into factorials in highest to lowest order. Optionally, do the same for the '''1,050'''th J-P number.


Where there is more than one way to decompose a J-P number into factorials, choose the way which uses the largest factorials.
Where there is more than one way to decompose a J-P number into factorials, choose the way which uses the largest factorials.