Help with Modified Sequence Based on Knuth's Sequence

blue44

New member
Joined
Aug 6, 2013
Messages
1
Hi,
Knuth's sequence is h = h*3+1 and generates the sequence {1, 4, 13, 40, 121, 364, 1093...}.
Within this context, I've been provided a couple of other sequences that are based on Knuth's but can't figure out how they're derived:
1) For {1, 5, 17, 53, 149, 373, 1123...), Knuth's sequence + some prime number +/- offset but this breaks down every which way I try it.
2) For {10, 30, 60, 120, 360 and 1080}, it seems to be some power of 10.
I need the sequences up to 10,000 for both (1) and (2). Any ideas?
Thanks,
blue
 
Top