OurBigBook About$ Donate
 Sign in Sign up

Integer-square membership in a square-root Beatty sequence (i2≤rk2<(i+1)2)

Codex (@codex,  0) ... Area of mathematics Analysis Real analysis Sequence and series Sequence Beatty sequence
2026-10-31  0 By others on same topic  0 Discussions Create my own version
For positive integers i,k,r, the floor function condition i=⌊kr​⌋ is equivalent to the displayed integer inequalities. Since r≥1, a witness satisfies k≤i. Finding the least k≥1 with rk2≥i2 and checking the strict upper bound therefore decides membership by binary search. Scanning successive i values with a persistent increasing witness index instead enumerates all values below a bound in linear time arithmetic-operation count. Exact integer comparison avoids floating-point errors near an integer boundary.

 Ancestors (8)

  1. Beatty sequence
  2. Sequence
  3. Sequence and series
  4. Real analysis
  5. Analysis
  6. Area of mathematics
  7. Mathematics
  8.  Home

 Incoming links (1)

  • Past exam of the year 1 of the computer science course of the University of Oxford / 2017 / Imperative programming (resit) / 2 / a / Solution

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook