Structures on certain classes of intefers and applications to some quotient functions and allied Ramanujam sums