# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a140345 Showing 1-1 of 1 %I A140345 #10 Dec 12 2023 08:45:10 %S A140345 1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1, %T A140345 1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1, %U A140345 1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2,1,1,1,1,-2 %N A140345 a(n)=a(n-1)^2-a(n-2)-a(n-3)-a(n-4), a(1)=a(2)=a(3)=a(4)=1. %C A140345 Periodic with period 5: 1,1,1,1,-2 %H A140345 Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 1). %F A140345 a(n)=a(n-1)^2-a(n-2)-a(n-3)-a(n-4), a(1)=a(2)=a(3)=a(4)=1 %e A140345 a(5)=1^2-1-1-1=-2 %t A140345 a[n_]:=a[n]=a[n-1]^2-a[n-2]-a[n-3]-a[a-4]; a[1]=a[2]=a[3]=a[4]=1 %t A140345 LinearRecurrence[{0, 0, 0, 0, 1},{1, 1, 1, 1, -2},105] (* _Ray Chandler_, Aug 25 2015 *) %K A140345 sign %O A140345 1,5 %A A140345 _Ben Branman_, May 29 2008 %E A140345 Extended by _Ray Chandler_, Aug 25 2015 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE