문제 링크
import math def solution(n): return (6*n / math.gcd(6, n)) / 6
방법 1.
def solution(n): i=1 while(1): if (6*i)%n==0: return i i+=1