---
title: "Discussion on \"Project Euler: #14 - Longest Collatz sequence\" | Hashnode"
description: "Discussion on \"Project Euler: #14 - Longest Collatz sequence\". Problem\nThe following iterative sequence is defined for the set of positive integers:\nn → n/2 (n is even)   n → 3n + 1 (n is odd)\nUsing the rule above and starting with 13, we generate the following sequence:\n13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → ..."
url: "https://hashnode.com/posts/project-euler-14-longest-collatz-sequence/63c34935502ec63755722ae9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Project Euler: #14 - Longest Collatz sequence](https://blog.theintrovertcoder.in/project-euler-14-longest-collatz-sequence?utm_source=hashnode&utm_medium=feed)

Problem The following iterative sequence is defined for the set of positive integers: n → n/2 (n is even) n → 3n + 1 (n is odd) Using the rule above and starting with 13, we generate the following sequence: 13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → ...

Jan 15, 2023 · 4 min read · blog.theintrovertcoder.in  
Read the article

-   [#project-euler](https://hashnode.com/tag/project-euler)
-   [#project-euler-solutions](https://hashnode.com/tag/project-euler-solutions)

## Written by

[Sangy K](https://hashnode.com/@sangyk)

@sangyk · Internet

  
[View profile](https://hashnode.com/@sangyk)

The Introvert Coder · A JS Lunatic ·

I'm a frontend-heavy full stack developer who works with JavaScript, React, Next.js, TypeScript, and Node.js. ==== Currently Reworking my Blog ====

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
