Frederick 's successor , Frederick William I of Prussia , rarely stayed at the palace . Frederick 's successor as king , Frederick William I of Prussia , rarely stayed at the palace , which depressed the small town of Charlottenburg .