# Julia, 43 bytes

<!-- language-all: lang-matlab -->

    n->for i=[9:-1:2,2:9] println(base(i,n))end

This creates an unnamed function that accepts and integer and prints to STDOUT on separate lines. The `base` function takes two integers: a base (`i`) and a number (`n`) and returns the string representation of the number in the given base. Here we just loop through the required bases and print.