If the total number of books in a batch exceeds 500 but is within 1000, if 13 books are packed into a bundle, the last bundle will be 2 books short; if 26 books are packed into a bundle, the last bundle will still be 2 books short; if 32 books This package comes in a bundle, and the last bundle is 30 copies. How many books are there in this batch?
有一批图书总数超过500本、在1000本以内，若按13本书包成一捆，最后一捆差2本；若按26本书包成一捆，最后一捆还是差2本书；若按32本包一捆，最后一捆是30本．这批图书有多少本？
<gadget id="calculator">2 * 2 * 2 * 2 * 2 * 13</gadget>
<output>416</output>

<gadget id="calculator">416 * 2</gadget>
<output>832</output>

<gadget id="calculator">832 - 2</gadget>
<output>830</output>

<result>830</result>