Navigation

HomeImage ToolsCode ToolsMath ToolsDate ToolsGeneratorsUtilities
Color ToolsText ToolsPDF Tools

Generate Ruler Sequence

Generate the ruler sequence — the 2-adic valuation of each positive integer (OEIS A007814).

What is the Ruler Sequence?

Pick how many terms you need and pull the ruler sequence in seconds — each value is just the exponent of 2 in the prime factorization of n, giving you 0,1,0,2,0,1,0,3 and so on. It shows up in Tower of Hanoi move counts, Gray code transitions, and sits at OEIS A007814. And everything runs in your browser. Nothing gets uploaded.

Related Tools