login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A217866 Last time n appears in the first differences of n*log(n): A217865. 1
1, 5, 18, 46, 137, 384, 1059, 2905, 8066, 21883, 59743, 162247, 441824 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Conjecture: the last time n appears is always before the first time n+2 appears.
For example, examine: 1, 2, 2, 3, 2, 3, 3, 3, 4, 3, 3, 4, 3, 4, 4, 4, 4, 3, 4, 4, 5, 4, 4, 4 (A217865).
We can see that the last 2 is before the first 4, the last 3 is before the first 5, etc.
LINKS
EXAMPLE
2 lasts appears in A217865 at position 5 so a(2)=5.
PROG
(JavaScript)
function lastIndex(arr, k) {
p=-1;
for (a=1; a<arr.length; a++) if (arr[a]==k) p=a;
return p;
}
d=new Array();
for (i=1; i<500000; i++)
d[i]=Math.floor((i+1)*Math.log(i+1))-Math.floor(i*Math.log(i));
for (i=1; i<100; i++) document.write(lastIndex(d, i)+", ");
CROSSREFS
Cf. A217865.
Cf. A217976.
Sequence in context: A273559 A272792 A273566 * A256539 A109363 A218214
KEYWORD
nonn
AUTHOR
Jon Perry, Oct 13 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)