##### List the factors of the entegers 1 .. MAX
##MAX = 20   # MAX is 20
##n = 1 #start with 1
##
##while n <= MAX:                      #do not go past MAX
##    factor = 1                      #1 is a factor of eny integer
##    print(end=str(n) + ' : ')       #which integer are we examing
##    while factor <= n:              #Factors are <= the number
##        if n % factor == 0:         #Test to see if factor is a factor of n
##            print(factor, end=' ') #if so, display its
##            factor += 1              #try the next numbeer
##    print()                          #Move to next line for next n
##    n += 1
##
##
##        

# List the factors of the integers 1...MAX
MAX = 20 # MAX is 20
for n in range(1, MAX + 1): # Consider numbers 1...MAX
    print(end=str(n) + ': ') # Which integer are we examining?
    for factor in range(1, n + 1): # Try factors 1...n
        if n % factor == 0: # Test to see if factor is a factor of n
            print(factor, end=' ') # If so, display it
            print() # Move to next line for next n
