The laws of apparition and repetition of primes in a cubic recurrence