|
Search: id:A079978
|
|
|
| A079978 |
|
Number of permutations satisfying -k<=p(i)-i<=r and p(i)-i not in I, i=1..n, with k=1, r=2, I={0,1}. |
|
+0 10
|
|
| 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1
(list; graph; listen)
|
|
|
OFFSET
|
0,1
|
|
|
COMMENT
|
a(n)=1 if n=3k, a(n)=0 otherwise. Decimal expansion of 1/999.
|
|
REFERENCES
|
D. H. Lehmer, Permutations with strongly restricted displacements. Combinatorial theory and its applications, II (Proc. Colloq., Balatonfured, 1969), pp. 755-770. North-Holland, Amsterdam, 1970.
|
|
LINKS
|
Index entries for characteristic functions
|
|
FORMULA
|
Recurrence: a(n) = a(n-3). G.f.: -1/(x^3-1)
a(n)=(1+e^(i*pi*A002487(n)))/2, i=sqrt(-1); - Paul Barry (pbarry(AT)wit.ie), Jan 14 2005
a(n) = (2/3)*[cos(n*(2/3)* Pi)+1/2] with n>=0. This can be used to create any periodic sequence of three elements x, y, z: b(n) = x*a(n) + y*a(n+2) + z*a(n+1) with n>=0 - Paolo P. Lava (ppl(AT)spl.at), Aug 22 2006
Additive with a(p^e) = 1 if p = 3, 0 otherwise.
a(n)=-1*((n^2 mod 3)-1) - Paolo P. Lava (ppl(AT)spl.at), Oct 02 2006
a(n)=((n+1) mod 3) mod 2. Also: a(n)=1/2*(1+(-1)^(n+floor((n+1)/3))). - Hieronymus Fischer (Hieronymus.Fischer(AT)gmx.de), May 29 2007
a(n) = 1 - A011655(n). [From Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Nov 30 2009]
|
|
PROGRAM
|
(PARI) a(n)=!(n%3) [From Jaume Oliver Lafont (joliverlafont(AT)gmail.com), Mar 01 2009]
|
|
CROSSREFS
|
Cf. A002524-A002529, A072827, A072850-A072856, A079955-A080014, A022003.
Essentially the same as A022003.
Partial sums are given by A002264(n+3).
Sequence in context: A014099 A037011 A024692 this_sequence A164704 A068429 A011747
Adjacent sequences: A079975 A079976 A079977 this_sequence A079979 A079980 A079981
|
|
KEYWORD
|
nonn,new
|
|
AUTHOR
|
Vladimir Baltic (baltic(AT)matf.bg.ac.yu), Feb 17 2003
|
|
|
Search completed in 0.002 seconds
|