Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A127460
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A127460 a(1)=1. a(n) = number of earlier terms a(k), 1<=k<=n-1, such that (k+a(k)) divides n. +0
3
1, 1, 1, 2, 0, 3, 0, 2, 2, 3, 1, 5, 1, 3, 2, 2, 3, 5, 0, 5, 2, 2, 2, 6, 3, 2, 2, 6, 1, 7, 0, 2, 2, 6, 3, 7, 1, 4, 2, 6, 1, 7, 1, 4, 3, 4, 0, 8, 2, 6, 5, 3, 0, 5, 3, 9, 2, 3, 2, 10, 2, 2, 4, 3, 3, 4, 2, 8, 4, 8, 0, 8, 1, 3, 4, 6, 3, 5, 1, 9, 2, 3, 2, 11, 6, 2, 2, 5, 2, 9, 4, 5, 3, 2, 4, 10, 1, 5, 5, 8, 0, 9, 1, 5 (list; graph; listen)
OFFSET

1,4

EXAMPLE

(a(1)+1) divides 10; (a(5)+5) divides 10; and (a(8)+8) divides 10. These 3 cases are the only cases where (a(k)+k) divides 10, for 1<=k<=9. So a(10)=3.

MATHEMATICA

f[l_List] := Block[{n = Length[l] + 1}, Append[l, Count[Table[Mod[n, k + l[[k]]], {k, n - 1}], 0]]]; Nest[f, {1}, 104] (*Chandler*)

CROSSREFS

Cf. A127461, A127462.

Sequence in context: A128145 A128143 A027640 this_sequence A011374 A035442 A035376

Adjacent sequences: A127457 A127458 A127459 this_sequence A127461 A127462 A127463

KEYWORD

nonn

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Jan 15 2007

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Jan 22 2007

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research