def dec2bin_recurs(n: int) -> int: assert n >= 0 and isinstance(n, int), "Input must be positive integer" if not n: return n return int(f'{dec2bin_recurs(n//2)}{n%2}')