A098295 ((3/2)^n)/2^a(n) lies in the half-open interval [1,2).
0, 1, 1, 2, 2, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9, 9, 10, 11, 11, 12, 12, 13, 14, 14, 15, 15, 16, 16, 17, 18, 18, 19, 19, 20, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 26, 27, 28, 28, 29, 29, 30, 31, 31, 32, 32, 33, 33, 34, 35, 35, 36, 36, 37, 38, 38, 39, 39, 40, 40, 41, 42, 42, 43, 43
Offset: 1
Examples
(3/2)^12 lies in the eighth octave [2^7,2^8) and ((3/2)^12)/2^a(12)= ((3/2)^12)/2^7 = 3^12/2^19 = 531441/524288 = 1.01363... belongs to the first octave [1,2). This ratio is called the Pythagorean comma.
Links
- Handbook for Acoustic Ecology, Pythagorean Scale.
- Eric Weisstein's World of Music, Pythagorean Scale
Crossrefs
Programs
-
PARI
a(n) = logint(3^n, 2) - n; \\ Ruud H.G. van Tol, Jan 26 2024
Formula
a(n) = A098294(n)-1, n >= 1.
a(n) = ceiling(tau*n)-1 with tau = log(3)/log(2)-1 = 0.58496250072..., n >= 1.
a(n) = A056576(n) - n. - Ruud H.G. van Tol, Jan 26 2024
Comments