Lois gives 40 / 4 = <<40/4=10>>10 books to her nephew

Then Lois has 40 - 10 = <<40-10=30>>30 books

Lois donates 30 / 3 = <<30/3=10>>10 books to the library

Then Lois has 30 - 10 = <<30-10=20>>20 books

After purchasing new books, Lois has 20 + 3 = <<20+3=23>>23 books

# Answer

23
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Lois has 40 books. She gives a fourth of her books to her nephew. From her remaining books, she donates a third of her books to the library. Then she purchases 3 new books from the book store. How many books does Lois have now?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
23
Lois has 40 books. She gives a fourth of her books to her nephew. From her remaining books, she donates a third of her books to the library. Then she purchases 3 new books from the book store. How many books does Lois have now?
train