AnimG

Visualizing Euler Totient Function for 1 to 12

Visualising Euler's Totient Function Ο•(n)\phi(n)

Overview

A brief animation that introduces the lesser‑known arithmetic functionβ€―Ο•(n)\phi(n), shows how it counts integers coprime toβ€―nn, and visualises the values for the first twelve positive integers. The key takeaway is how Ο•\phi behaves irregularly yet reveals hidden structure in the integers.


Phases

# Phase Name Duration Description
1 Intro ~3s Title fades in, then a simple number line appears with markers 1‑12.
2 Definition ~4s A brief visual of the formula \phi(n)=n\prod_{p\mid n}\left(1-\frac{1}{p}\r\right) appears beside the number line; the formula fades out as the next step begins.
3 Coprime Highlight ~6s For each nn from 1 to 12, the animation highlights in green the integers kk (1≀k≀n1\le k\le n) that are coprime to nn. The count of green dots is displayed as a small bar above the corresponding nn.
4 Pattern Reveal ~4s Bars for all nn are collected into a bar‑chart style histogram on the right side, showing the sequence Ο•(1),…,Ο•(12)\phi(1),\dots,\phi(12). A quick sweep emphasizes the irregular jumps.
5 Outro ~3s The title re‑appears with the statement β€œΟ•\phi measures hidden coprime structure”. All elements fade out.

Layout

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚               TOP AREA                 β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚        LEFT AREA       β”‚   RIGHT AREA  β”‚
β”‚  (Number line +       β”‚ (Histogram of β”‚
β”‚   coprime highlights) β”‚   \phi values)β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚               BOTTOM AREA              β”‚
β”‚   Small formula / caption (optional)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Area Descriptions

Area Content Notes
Top Title "Euler's Totient Function" Fades in at start of Intro, fades out at Outro
Left Number line 1‑12 with dynamic green highlights for coprime integers Primary visual; each nn is highlighted sequentially
Right Bar chart of Ο•(n)\phi(n) values for n=1…12n=1\dots12 Appears in Phaseβ€―4, stays until Outro
Bottom Optional formula Ο•(n)=n∏p∣n(1βˆ’1/p)\phi(n)=n\prod_{p\mid n}(1-1/p) displayed during Definition phase Small font, fades with the formula

Notes

  • Total runtime β‰ˆ 20β€―seconds, well under the 30‑second guideline.
  • All visual elements are generated with a single Manim Scene class.
  • No explanatory text is used beyond the brief formula; the visual highlighting conveys the concept.
  • Colors: green for coprime numbers, muted gray for non‑coprime, blue for histogram bars.
  • Transitions are simple fades and linear motions to keep the animation concise.

Created By

Varuna RaoVaruna Rao

Description

The animation introduces the Euler totient function, shows a number line from 1 to 12, and highlights in green the integers that are coprime to each n. A small bar displays the count of coprime numbers, and these counts are gathered into a histogram that reveals the irregular pattern of totient values. The title and formula appear briefly, and the scene fades out at the end.

Created At

Apr 20, 2026, 02:38 AM

Duration

0:26

Tags

number-theorytotient

Status

Completed
AI Model
Auto