<gh_stars>0
def sevenish_number(n):
    p = [1]
    j = 1
    a = [1]
    while len(a)!=n:
        ans = 7**j
        p.append(ans)
        a.append(ans)
        for i in range(len(p)-1):
            s = p[i] + p[j]
            a.append(s)
        j = j + 1
    print(a)
    print(p) 
      
def sevenish_number(n):
    p = [1]
    j = 1
    a = [1]
    while len(a)!=n:
        ans = 7**j
        p.append(ans)
        a.append(ans)
        for i in range(len(p)-1):
            s = p[i] + p[j]
            a.append(s)
        j = j + 1
    print(a)
    print(p)