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!)
A335372 a(0) = 0, a(1) = 1; for n > 1, a(n) = a(n-1) - A001065(n) if nonnegative and not already in the sequence, otherwise a(n) = a(n-1) + A001065(n), where A001065(n) is the sum of the proper divisors of n. 2
0, 1, 2, 3, 6, 5, 11, 10, 17, 13, 21, 20, 4, 5, 15, 24, 9, 8, 29, 28, 50, 39, 25, 26, 62, 56, 40, 27, 55, 54, 12, 13, 44, 59, 79, 66, 121, 120, 98, 81, 31, 30, 84, 83, 43, 76, 102, 101, 177, 169, 126, 105, 151, 150, 216, 199, 135, 112, 80, 81, 189, 188, 154, 113, 176, 157, 235, 234, 292 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
This sequences uses the same rules as Recamán's sequence A005132 except that, instead of adding or subtracting n each term, the sum of the proper divisors of n is used. See A001065.
For the first 10 million terms the smallest value not appearing is 46. As there are infinite abundant numbers it is likely that eventually all values are visited, although this is unknown.
In the same range the maximum value is a(9529524) = 65424507, and 633238 terms repeat a previously visited value, the first time this occurs is a(13) = a(5) = 5. The longest run of consecutive increasing terms is 8, starting at a(7069152) = 1040443, while the longest run of consecutive decreasing terms is 11, starting at a(106380) = 621777.
LINKS
EXAMPLE
a(2) = 2. As 2 is prime A001065(2) = 1, and 1 has previously appeared, a(2) = a(1) + 1 = 2.
a(4) = 6. As A001065(4) = 1+2 = 3, and 0 has previously appeared, a(4) = a(3) + 3 = 6.
a(5) = 5. As 5 is prime A001065(5) = 1, and 5 has not previously appeared, a(5) = a(4) - 1 = 5.
CROSSREFS
Sequence in context: A345321 A350339 A039653 * A106379 A232929 A001634
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Aug 16 2020
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 10:47 EDT 2024. Contains 371967 sequences. (Running on oeis4.)