Suppose that you have 30 unique ips from different classes.
Your spf record would be like :
"v=spf1 a mx ip4:75.126.50.50 include:spf1.domain.com include:spf2.domain.com include:spf3.domain.com include:spf4.domain.com include:spf5.domain.com -all"
Then you may add 6 records(ips) per spf record.
Your spf record for spf1.domain.com would be like :
"v=spf1 a mx ip4:75.126.50.50 ip4:85.126.50.50 ip4:95.126.50.50 ip4:45.126.50.50 ip4:65.126.50.50 ip4:25.126.50.50 -all"
You would do that for the rest of the records.
There is nothing recursive here.