← RoseCode

ROSECODE 494

m-excellent pairs

Philippe_57721 · Math ·

Let ν a positive irrational number and m a positive integer.

A pair of integers (a,b) is said m-good if: a×⌈ν×b⌉−b×⌊ν×a⌋=m
(⌈x⌉ and ⌊x⌋ are respectively the smallest integer ≥x and the largest integer ≤x)

A pair of positive integers (a,b) is said m-excellent if:
(a,b) is m-good and neither (a−b,b) nor (a,b−a) are m-good.

How many m-excellent pairs (m=123456789101112) are there if ν=0.5772156649015314…?