Represent a fraction as a 2-adic integer – codegolf.stackexchange.com

Dannyu NDos
Objective Given a reduced fraction whose denominator is positive and odd, represent the fraction as a 2-adic integer. Introduction to 2-adic integers Informally Informally, a 2-adic integer is an ...