Thank you again, Dan.
I ended up using last version of your code for both – animated transforms and timeRemap, just I had to adjust it to get the effects.
f = timeToFrames(time);
valueAtTime(framesToTime(Math.floor((f-1)/2)*2)) -> 1,1,3,3,5,5..
I guess, your bit deserves to replace current info on posterizeTime() in AFX user’s guide, or Adobe should consider fixing that function.
Neil