SoumiyaGoutham wrote:
If the qustion says division result (n/18) is an integer (no fractional part) , shoul we consider decimal values also?
Hi SoumiyaGoutham,
Integers by definition are Non-Fractional and Non-Decimal type Numbers. So (5n/18) should be an Integer doesn't ascertain the value of n which theoretically can be a fraction of two integers (or Decimal value) as well e.g. for n= 18/5, (5n/18) will be an Integer
"An integer (from the Latin integer meaning "whole")[note 1] is a number that can be written without a fractional component. For example, 21, 4, 0, and −2048 are integers, while 9.75, 5½, and √2 are not.
The set of integers consists of zero (0), the natural numbers (1, 2, 3, …), also called whole numbers or counting numbers,[1] and their additive inverses (the negative integers, i.e. −1, −2, −3, …). This is often denoted by a boldface Z ("Z") or blackboard bold \mathbb{Z} (Unicode U+2124 ℤ) standing for the German word Zahlen ([ˈtsaːlən], "numbers").[2][3] ℤ is a subset of the sets of rational and real numbers and, like the natural numbers, is countably infinite.
The integers form the smallest group and the smallest ring containing the natural numbers. In algebraic number theory, the integers are sometimes called rational integers to distinguish them from the more general algebraic integers. In fact, the (rational) integers are the algebraic integers that are also rational numbers."
Ref:
https://en.wikipedia.org/wiki/Integer