A prime is irregular if and only if the integer Sum_{j=1..p-1} cot^(r)(j*Pi/p)cot(jPi/p) is divisible by p for some even r <= p-5 give an numerical example
Mathbot Says...
I wasn't able to parse your question, but the HE.NET team is hard at work making me smarter.