If the value of limx→0((a−n)nx−tanx)sinnxx2 is equal to 0, where n∈R−{0}, then the value of a is equal to