How to set an iPad back to factory settings where I have forgotton the restrictions passcode?

Connect it to a computer, open iTunes and click "Restore" in the "Summary" tab for the device. Note that you will lose all data and settings on the iPad.

See: iTunes: Restoring iOS software