The product (7)(777…7), where the second factor has k digits, is an integer whose digits have a sum of 1001. What is k?
242
245
248
251
254