#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Privacy
+
Create new post
Create new blog
Add your blog
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
Rotation revisited: Avoiding having to calculate the gcd when doing cycle decomposition
·
Raymond Chen
·
June 5, 2026, 11:23 p.m.
Old New Thing
Code
Mathematics in programming
cycle decomposition
GCD
Algorithm Optimization
Summary
This blog post discusses a mathematical approach to cycle decomposition without calculating the greatest common divisor (gcd), highlighting the challenges of mathematical concepts in programming.
Read full post on devblogs.microsoft.com →
MORE POSTS LIKE THIS
Solving the fox game
Blog Sesse ·
Nov 13, 2026
AI Development
game-theory
A faster Easter date function
Ben Joffe ·
Nov 10, 2026
Easter date calculation
Algorithm Optimization
Computing big, certified Fibonacci numbers
John Cook ·
Feb 21, 2026
Computing
Number theory
cron & Calendar.RecurrenceRule
Nshipster ·
Nov 24, 2026
Cocoa
cron expressions
The best thing agents built for me wasn't an app, it was the tooling around my apps
Flaviocopes ·
Nov 24, 2026
Coding Agents
development tools
Verifying Fortran code with Lean
Fortran Lang Discourse ·
Nov 25, 2026
Fortran
numerical methods
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google
By continuing, you agree to our
Privacy Policy
.