<prompt> Andika programu ya kutatua hili: Wewe ni kuwa wajibu wa kutafuta n kwanza masharti ya mfululizo Recaman ya ikiwa ni pamoja na neno 0. mfululizo Recaman ya inatumia sheria zifuatazo: - Neno 0 ni sifuri. - Ili kupata neno katika mfululizo, subtract namba ya neno kutoka mrefu uliopita. - Kama idadi hii ni hasi au idadi ambayo tayari alionekana katika mfululizo, wewe badala yake haja ya kuongeza namba ya neno kwa mrefu uliopita.  <response>: Heres a Python code to find the first n terms of Recamans sequence:def recaman_sequencen: sequence 0 for i in range1, n: current sequencei-1 - i if current 0 or current in sequence: current sequencei-1 i sequence.appendcurrent return sequenceTo use the function, simply call recaman_sequencen where n is the number of terms you want to find. For example, recaman_sequence10 will return 0, 1, -1, 4, -2, 5, -3, 6, -4, 7. 