'Negative exponent in division in Sympy

I make a division

fn=n/3**(n+1)

But the view has

fn=3**(-n-1)*n

Please tell me how to force as fn=n/3**(n+1)



Solution 1:[1]

Other than modifying the printer, I can only think of symbol-trickery: make the denominator a Symbol: n/Symbol('3^{n+1}').

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 smichr