Interactive Graph of Series and Sequences

Write an as a function of n. Free parameters: p, q, w. Examples: 1/n^p q^n (-1)^(n+1)/n sin(w*n)/n by www.andreaminini.net
math.js functions: sin, cos, tan, log, exp, sqrt, abs, pow. Powers with ^ or pow(x,y).
Automatic tests (heuristics)
Advanced tests
Known-pattern recognition
Last 20 points