revolving line of credit would become due on such date, or earlier in the event of a default. No advances were outstanding under the agreement as of September 30, 2024.
Cash from Operating Activities
Operating activities generated $66.5 million of cash in the nine months ended September 30, 2024. Net income for this period was $23.1 million; we also incurred non-cash stock-based compensation expense, depreciation, increase in deferred tax assets, accretion of discount on marketable securities, and amortization of intangibles of $25.8 million, $25.6 million, $8.7 million, $1.3 million and $1.1 million, respectively. Sources of cash included a $5.6 million decrease in prepaid expenses and other assets and an increase of $1.9 million in accounts payable. These sources of cash were partially offset by a $4.5 million increase in inventories and a $1.5 million increase in accounts receivable due to timing of customer payments.
Operating activities generated $49.5 million of cash in the nine months ended September 30, 2023. Net income for this period was $41.5 million; we also incurred depreciation, non-cash stock-based compensation expense, increase in deferred tax assets and amortization of intangibles of $26.3 million, $21.0 million, $10.0 million and $1.6 million, respectively. Sources of cash were partially offset by a $14.8 million increase in inventories reflecting a slowdown in sales driven by factors described above, a $7.2 million increase in accounts receivable, a $5.0 million decrease in taxes payable and accrued liabilities primarily due to timing of customer rebate payments, a $2.9 million decrease in accounts payable (excluding payables related to property and equipment) due to timing of payments and a $0.8 million increase in prepaid expenses and other assets primarily due to federal income tax prepayments.
Cash from Investing Activities
Our investing activities in the nine months ended September 30, 2024 resulted in a $17.5 million net use of cash, primarily consisting of $14.2 million used for purchases of property and equipment (primarily production-related machinery and equipment) and $9.5 million for the Odyssey acquisition, partially offset by $6.2 million of proceeds from sales and maturities of marketable securities, net of purchases.
Our investing activities in the nine months ended September 30, 2023 resulted in $25.9 million net use of cash, primarily consisting of $11.1 million used for purchases of marketable securities net of proceeds from sales and maturities, and $14.7 million used for purchases of property and equipment, primarily production-related machinery and equipment.
Cash from Financing Activities
Our financing activities in the nine months ended September 30, 2024 resulted in a $54.4 million net use of cash, consisting of $34.1 million for the payment of dividends to stockholders and $26.0 million for the repurchase of our common stock, partially offset by proceeds of $5.7 million from the issuance of shares through our employee stock purchase plan.
Our financing activities in the nine months ended September 30, 2023 resulted in a $34.3 million net use of cash, consisting of $32.7 million for the payment of dividends to stockholders and $7.8 million for the repurchase of our common stock, partially offset by $6.2 million from the issuance of shares through our employee stock purchase plan.
Dividends
In February 2023, our board of directors declared dividends of $0.19 per share to be paid to stockholders of record at the end of each quarter in 2023. In October 2023, our board of directors raised the quarterly cash dividend with the declaration of five cash dividends of $0.20 per share to be paid at the end of the fourth quarter of 2023 (in lieu of the previously declared dividend of $0.19 per share) and at the end of each quarter in 2024. In October 2024, our board of directors raised the quarterly cash dividend again with the declaration of five cash dividends of $0.21 per share to be paid at the end of the fourth quarter of 2024 (in lieu of the previously declared dividend of $0.20 per share) and at the end of each quarter in 2025.
Dividend payouts of $11.4 million occurred on March 28, 2024, June 28, 2024 and September 30, 2024. The declaration of any future cash dividend is at the discretion of the board of directors and will depend on our financial condition, results of operations, capital requirements, business conditions and other factors, as well as a determination that cash dividends are in the best interests of our stockholders.