<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=Project_Euler%2F170</id>
	<title>Project Euler/170 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=Project_Euler%2F170"/>
	<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Project_Euler/170&amp;action=history"/>
	<updated>2026-06-25T05:34:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://charlesreid1.com/w/index.php?title=Project_Euler/170&amp;diff=30862&amp;oldid=prev</id>
		<title>Admin: Add problem description for Project Euler 170 (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Project_Euler/170&amp;diff=30862&amp;oldid=prev"/>
		<updated>2026-06-24T22:09:32Z</updated>

		<summary type="html">&lt;p&gt;Add problem description for Project Euler 170 (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Problem Statement==&lt;br /&gt;
&lt;br /&gt;
Link: https://projecteuler.net/problem=170&lt;br /&gt;
&lt;br /&gt;
Take the number 6 and multiply it by each of 1273 and 9854:&lt;br /&gt;
&lt;br /&gt;
: 6 × 1273 = 7638&lt;br /&gt;
: 6 × 9854 = 59124&lt;br /&gt;
&lt;br /&gt;
By concatenating these products we get the 1 to 9 pandigital 763859124. We will call 763859124 the &amp;quot;concatenated product of 6 and (1273,9854)&amp;quot;. Notice too, that the concatenation of the input numbers, 612739854, is also 1 to 9 pandigital.&lt;br /&gt;
&lt;br /&gt;
The same can be done for 0 to 9 pandigital numbers.&lt;br /&gt;
&lt;br /&gt;
What is the largest 0 to 9 pandigital 10-digit concatenated product of an integer with two or more other integers, such that the concatenation of the input numbers is also a 0 to 9 pandigital 10-digit number?&lt;br /&gt;
&lt;br /&gt;
Solution: https://git.charlesreid1.com/cs/euler/src/master/scratch/Round7_170-180/Problem170.py&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
&lt;br /&gt;
This problem asks for the largest 0-to-9 pandigital number that can be expressed as a concatenated product: an integer multiplier &amp;#039;&amp;#039;a&amp;#039;&amp;#039; applied to two (or more) other integers &amp;#039;&amp;#039;b, c, …&amp;#039;&amp;#039; such that concatenating &amp;#039;&amp;#039;a × b&amp;#039;&amp;#039; and &amp;#039;&amp;#039;a × c&amp;#039;&amp;#039; yields a 0-to-9 pandigital, &amp;#039;&amp;#039;and&amp;#039;&amp;#039; concatenating the inputs &amp;#039;&amp;#039;a, b, c, …&amp;#039;&amp;#039; also yields a 0-to-9 pandigital.&lt;br /&gt;
&lt;br /&gt;
===Approach===&lt;br /&gt;
&lt;br /&gt;
A brute-force search over all 0-to-9 pandigital numbers (10! = 3,628,800 permutations) is feasible. For each pandigital, split it into two parts (left and right). For each common divisor of the two parts, check whether the concatenation of the divisor and the two quotients forms a 10-digit pandigital.&lt;br /&gt;
&lt;br /&gt;
Key observations:&lt;br /&gt;
* The concatenated product only needs to be split into two parts (left = factor × one, right = factor × two).&lt;br /&gt;
* The factor must divide both parts: 1 &amp;lt; factor ≤ gcd(left, right).&lt;br /&gt;
* All valid factors are multiples of 3.&lt;br /&gt;
&lt;br /&gt;
The search proceeds from the largest pandigital (9876543210) downward using &amp;lt;code&amp;gt;std::prev_permutation&amp;lt;/code&amp;gt;, stopping at the first valid result.&lt;br /&gt;
&lt;br /&gt;
==Flags==&lt;br /&gt;
&lt;br /&gt;
{{ProjectEulerFlag}}&lt;br /&gt;
[[Category:January 2018]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>