<?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%2F14</id>
	<title>Project Euler/14 - 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%2F14"/>
	<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Project_Euler/14&amp;action=history"/>
	<updated>2026-06-19T11:44:18Z</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/14&amp;diff=19503&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Problem link: https://projecteuler.net/problem=14  The Collatz sequence, also called a hailstone sequence, is a sequence of numbers determined by two formulas, applied dependi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Project_Euler/14&amp;diff=19503&amp;oldid=prev"/>
		<updated>2017-07-15T07:59:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Problem link: https://projecteuler.net/problem=14  The Collatz sequence, also called a hailstone sequence, is a sequence of numbers determined by two formulas, applied dependi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Problem link: https://projecteuler.net/problem=14&lt;br /&gt;
&lt;br /&gt;
The Collatz sequence, also called a hailstone sequence, is a sequence of numbers determined by two formulas, applied depending on whether the current number in the sequence is even or odd. If a given term in the sequence is odd, the next term is computed using the expression&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
n_{i+1} = 3 n_i + 1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if it is even, the following formula is used:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
n_{i+1} = \frac{n}{2}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Eventually, this sequence will begin to repeat. The task for this problem is to compute a Collatz sequence for all of the integers under 1 million, and determine which starting integer leads to the longest Collatz sequence.&lt;br /&gt;
&lt;br /&gt;
As you can probably imagine, the integers in this problem get &amp;#039;&amp;#039;really&amp;#039;&amp;#039; big. I initially began with longs, but when I had finished the implementation and began to run the program, I realized I needed to use BigInteger in my implementation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{ProjectEulerFlag}}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>