AC solution to p1004