# ruler-function **Repository Path**: mirrors_stevemao/ruler-function ## Basic Information - **Project Name**: ruler-function - **Description**: https://oeis.org/A001511 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-10-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Ruler Function The exponent of the largest power of 2 which divides a given number 2n. The values of the ruler function for n=1, 2, ..., are 1, 2, 1, 3, 1, 2, 1, 4, 1, 2, ... ```js const ruler = require('ruler-function') ruler(10) // => [0, 1, 0, 2, 0, 1, 0, 3, 0, 1] ```