<?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%2F238</id>
	<title>Project Euler/238 - 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%2F238"/>
	<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Project_Euler/238&amp;action=history"/>
	<updated>2026-06-19T16:38:03Z</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/238&amp;diff=30629&amp;oldid=prev</id>
		<title>Admin: Create Project Euler/238 - Infinite String Tour (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Project_Euler/238&amp;diff=30629&amp;oldid=prev"/>
		<updated>2026-06-17T21:19:19Z</updated>

		<summary type="html">&lt;p&gt;Create Project Euler/238 - Infinite String Tour (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;
&amp;#039;&amp;#039;&amp;#039;Infinite String Tour&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Create a sequence of numbers using the &amp;quot;Blum Blum Shub&amp;quot; pseudo-random number generator:&lt;br /&gt;
&lt;br /&gt;
s_0 = 14025256&lt;br /&gt;
s_{n+1} = s_n^2 mod 20300713&lt;br /&gt;
&lt;br /&gt;
Concatenate these numbers s_0 s_1 s_2 … to create a string w of infinite length. Then, w = 14025256741014958470038053646…&lt;br /&gt;
&lt;br /&gt;
For a positive integer k, if no substring of w exists with a sum of digits equal to k, p(k) is defined to be zero. If at least one substring of w exists with a sum of digits equal to k, we define p(k) = z, where z is the starting position of the earliest such substring.&lt;br /&gt;
&lt;br /&gt;
For instance:&lt;br /&gt;
* The substrings 1, 14, 1402, … with respective sums of digits equal to 1, 5, 7, … start at position 1, hence p(1) = p(5) = p(7) = … = 1.&lt;br /&gt;
* The substrings 4, 402, 4025, … with respective sums of digits equal to 4, 6, 11, … start at position 2, hence p(4) = p(6) = p(11) = … = 2.&lt;br /&gt;
* The substrings 02, 0252, … with respective sums of digits equal to 2, 9, … start at position 3, hence p(2) = p(9) = … = 3.&lt;br /&gt;
&lt;br /&gt;
Note that substring 025 starting at position 3, has a sum of digits equal to 7, but there was an earlier substring (starting at position 1) with a sum of digits equal to 7, so p(7) = 1, not 3.&lt;br /&gt;
&lt;br /&gt;
We can verify that, for 0 &amp;lt; k ≤ 10^3, ∑ p(k) = 4742.&lt;br /&gt;
&lt;br /&gt;
Find ∑ p(k), for 0 &amp;lt; k ≤ 2·10^15.&lt;br /&gt;
&lt;br /&gt;
==Flags==&lt;br /&gt;
&lt;br /&gt;
{{ProjectEulerFlag}}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>